Skip to content

Commit 3625c20

Browse files
committed
Fix issue with javadoc and source jar. See novoda/bintray-release#90
1 parent 1e2d880 commit 3625c20

File tree

4 files changed

+69
-2
lines changed

4 files changed

+69
-2
lines changed

library/async/build.gradle

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,22 @@
11
apply plugin: 'java'
22
apply plugin: 'com.novoda.bintray-release'
33

4+
// custom tasks for creating source/javadoc jars
5+
task sourcesJar(type: Jar, dependsOn: classes) {
6+
classifier = 'sources'
7+
from sourceSets.main.allSource
8+
}
9+
10+
task javadocJar(type: Jar, dependsOn: javadoc) {
11+
classifier = 'javadoc'
12+
from javadoc.destinationDir
13+
}
14+
15+
// add javadoc/source jar tasks as artifacts
16+
artifacts {
17+
archives sourcesJar, javadocJar
18+
}
19+
420
publish {
521
groupId = 'com.github.amatkivskiy'
622
artifactId = 'gitter.sdk.async'

library/core/build.gradle

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,22 @@ apply plugin: 'com.novoda.bintray-release'
33

44
version '1.6.0'
55

6+
// custom tasks for creating source/javadoc jars
7+
task sourcesJar(type: Jar, dependsOn: classes) {
8+
classifier = 'sources'
9+
from sourceSets.main.allSource
10+
}
11+
12+
task javadocJar(type: Jar, dependsOn: javadoc) {
13+
classifier = 'javadoc'
14+
from javadoc.destinationDir
15+
}
16+
17+
// add javadoc/source jar tasks as artifacts
18+
artifacts {
19+
archives sourcesJar, javadocJar
20+
}
21+
622
publish {
723
groupId = 'com.github.amatkivskiy'
824
artifactId = 'gitter.sdk.core'
@@ -17,4 +33,5 @@ publish {
1733
dependencies {
1834
compile 'com.squareup.retrofit:retrofit:1.9.0'
1935
testCompile 'junit:junit:4.12'
20-
}
36+
}
37+

library/rx/build.gradle

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,22 @@ jacocoTestReport {
1010
}
1111
}
1212

13+
// custom tasks for creating source/javadoc jars
14+
task sourcesJar(type: Jar, dependsOn: classes) {
15+
classifier = 'sources'
16+
from sourceSets.main.allSource
17+
}
18+
19+
task javadocJar(type: Jar, dependsOn: javadoc) {
20+
classifier = 'javadoc'
21+
from javadoc.destinationDir
22+
}
23+
24+
// add javadoc/source jar tasks as artifacts
25+
artifacts {
26+
archives sourcesJar, javadocJar
27+
}
28+
1329
publish {
1430
groupId = 'com.github.amatkivskiy'
1531
artifactId = 'gitter.sdk.rx'
@@ -31,3 +47,4 @@ dependencies {
3147
testCompile 'org.hamcrest:hamcrest-core:1.3'
3248
testCompile 'com.squareup.okhttp3:mockwebserver:3.2.0'
3349
}
50+

library/sync/build.gradle

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,22 @@
11
apply plugin: 'java'
22
apply plugin: 'com.novoda.bintray-release'
33

4+
// custom tasks for creating source/javadoc jars
5+
task sourcesJar(type: Jar, dependsOn: classes) {
6+
classifier = 'sources'
7+
from sourceSets.main.allSource
8+
}
9+
10+
task javadocJar(type: Jar, dependsOn: javadoc) {
11+
classifier = 'javadoc'
12+
from javadoc.destinationDir
13+
}
14+
15+
// add javadoc/source jar tasks as artifacts
16+
artifacts {
17+
archives sourcesJar, javadocJar
18+
}
19+
420
publish {
521
groupId = 'com.github.amatkivskiy'
622
artifactId = 'gitter.sdk.sync'
@@ -14,5 +30,6 @@ publish {
1430

1531
dependencies {
1632
// compile 'com.github.amatkivskiy:gitter.sdk.core:1.5'
17-
compile project(':library:core')
33+
compile project(':library:core')
1834
}
35+

0 commit comments

Comments
 (0)