Skip to content

Commit

Permalink
Baku Toolkit - fixing 0.2.0 publish
Browse files Browse the repository at this point in the history
bintray/gradle-bintray-plugin#81

Change-Id: I3ba742f373d63d75e0f5c046f3e7b5acbac5c89a
  • Loading branch information
AsturaPhoenix committed Dec 5, 2015
1 parent fd960d8 commit cd61bc4
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions baku-toolkit/lib/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
version = '0.2.0'
group = 'io.v'

def artifactId = 'baku-toolkit'
def siteUrl = 'https://github.com/vanadium/java'
def gitUrl = 'https://github.com/vanadium/java.git'
def pkgDesc = 'Utilities for writing applications with distributed user interfaces'
Expand All @@ -18,6 +17,8 @@ For detailed instructions, see https://github.com/evant/gradle-retrolambda
*/
apply plugin: 'me.tatarka.retrolambda'

archivesBaseName = 'baku-toolkit'

android {
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
Expand Down Expand Up @@ -131,24 +132,33 @@ task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
}

archivesBaseName = artifactId

artifacts {
archives javadocJar
archives sourcesJar
}

def artifactPrefix = archivesBaseName + '-' + version

bintray {
user = project.properties.bintrayUsername
key = project.properties.bintrayApiKey

configurations = ['archives']
// TODO(rosswang): use - https://github.com/bintray/gradle-bintray-plugin/issues/81
//configurations = ['archives']
// TODO(rosswang): remove - https://github.com/bintray/gradle-bintray-plugin/issues/81
filesSpec {
from 'build/libs', 'build/outputs/aar', 'build/poms'
rename '.+\\.aar', artifactPrefix + '.aar'
rename 'pom-default\\.xml', artifactPrefix + '.pom'
into 'io/v/baku-toolkit/' + version
}

pkg {
desc = pkgDesc
websiteUrl = siteUrl
vcsUrl = gitUrl
repo = group
name = rootProject.name
name = archivesBaseName
licenses = ['BSD New']
userOrg = 'vanadium'
publish = true
Expand Down

0 comments on commit cd61bc4

Please sign in to comment.