Skip to content

Commit

Permalink
Fix issue with javadoc and source jar. See novoda/bintray-release#90
Browse files Browse the repository at this point in the history
  • Loading branch information
amatkivskiy committed Jan 14, 2017
1 parent 1e2d880 commit 3625c20
Show file tree
Hide file tree
Showing 4 changed files with 69 additions and 2 deletions.
16 changes: 16 additions & 0 deletions library/async/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,22 @@
apply plugin: 'java'
apply plugin: 'com.novoda.bintray-release'

// custom tasks for creating source/javadoc jars
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
}

task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}

// add javadoc/source jar tasks as artifacts
artifacts {
archives sourcesJar, javadocJar
}

publish {
groupId = 'com.github.amatkivskiy'
artifactId = 'gitter.sdk.async'
Expand Down
19 changes: 18 additions & 1 deletion library/core/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,22 @@ apply plugin: 'com.novoda.bintray-release'

version '1.6.0'

// custom tasks for creating source/javadoc jars
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
}

task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}

// add javadoc/source jar tasks as artifacts
artifacts {
archives sourcesJar, javadocJar
}

publish {
groupId = 'com.github.amatkivskiy'
artifactId = 'gitter.sdk.core'
Expand All @@ -17,4 +33,5 @@ publish {
dependencies {
compile 'com.squareup.retrofit:retrofit:1.9.0'
testCompile 'junit:junit:4.12'
}
}

17 changes: 17 additions & 0 deletions library/rx/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,22 @@ jacocoTestReport {
}
}

// custom tasks for creating source/javadoc jars
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
}

task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}

// add javadoc/source jar tasks as artifacts
artifacts {
archives sourcesJar, javadocJar
}

publish {
groupId = 'com.github.amatkivskiy'
artifactId = 'gitter.sdk.rx'
Expand All @@ -31,3 +47,4 @@ dependencies {
testCompile 'org.hamcrest:hamcrest-core:1.3'
testCompile 'com.squareup.okhttp3:mockwebserver:3.2.0'
}

19 changes: 18 additions & 1 deletion library/sync/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,22 @@
apply plugin: 'java'
apply plugin: 'com.novoda.bintray-release'

// custom tasks for creating source/javadoc jars
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
}

task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}

// add javadoc/source jar tasks as artifacts
artifacts {
archives sourcesJar, javadocJar
}

publish {
groupId = 'com.github.amatkivskiy'
artifactId = 'gitter.sdk.sync'
Expand All @@ -14,5 +30,6 @@ publish {

dependencies {
// compile 'com.github.amatkivskiy:gitter.sdk.core:1.5'
compile project(':library:core')
compile project(':library:core')
}

0 comments on commit 3625c20

Please sign in to comment.