Skip to content

Commit

Permalink
Remove maven publishing stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
Dimezis committed Jul 19, 2022
1 parent 3005e46 commit 676ecab
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 118 deletions.
48 changes: 0 additions & 48 deletions .circleci/config.yml

This file was deleted.

70 changes: 0 additions & 70 deletions library/build.gradle
Original file line number Diff line number Diff line change
@@ -1,28 +1,6 @@
apply plugin: 'com.android.library'
apply plugin: 'com.jfrog.bintray'
apply plugin: 'maven-publish'
apply plugin: 'de.mannodermaus.android-junit5'

ext {
PUBLISH_GROUP_ID = 'com.eightbitlab'
PUBLISH_ARTIFACT_ID = 'blurview'
}

def getVersionName() {
def stdout = new ByteArrayOutputStream()
exec {
commandLine 'git', 'describe', '--tags'
standardOutput = stdout
}
//remove "version-" prefix and hash
def tagAndHash = stdout.toString().trim().replace("version-", "")
def indexOfDash = tagAndHash.indexOf("-")
if (indexOfDash == -1) {
return tagAndHash
}
return tagAndHash.substring(0, indexOfDash)
}

android {
compileSdkVersion 31

Expand Down Expand Up @@ -66,51 +44,3 @@ task androidSourcesJar(type: Jar) {
classifier = 'sources'
from android.sourceSets.main.java.srcDirs
}

publishing {
publications {
Production(MavenPublication) {
artifact("$buildDir/outputs/aar/library-release.aar")
artifact(androidSourcesJar)
artifact(androidJavadocsJar)
groupId PUBLISH_GROUP_ID
artifactId PUBLISH_ARTIFACT_ID
version getVersionName()

//The publication doesn't know about our dependencies, so we have to manually add them to the pom
pom.withXml {
//Iterate over the implementation dependencies (we don't want the test ones), adding a <dependency> node for each
def dependenciesNode = asNode().appendNode('dependencies')
configurations.implementation.allDependencies.each {
if (it.name != 'unspecified') {
def dependencyNode = dependenciesNode.appendNode('dependency')
dependencyNode.appendNode('groupId', it.group)
dependencyNode.appendNode('artifactId', it.name)
dependencyNode.appendNode('version', it.version)
}
}
}
}
}
}

bintray {
user = System.getenv('BINTRAY_USER')
key = System.getenv('BINTRAY_API_KEY')
dryRun = false
override = false
publish = true
pkg {
repo = 'maven'
name = 'BlurView'
userOrg = 'dimezis'
vcsUrl = 'https://github.com/Dimezis/BlurView'
licenses = ['Apache-2.0']

version {
name = getVersionName()
vcsTag = getVersionName()
}
}
publications = ['Production']
}

0 comments on commit 676ecab

Please sign in to comment.