File tree Expand file tree Collapse file tree 4 files changed +69
-2
lines changed
Expand file tree Collapse file tree 4 files changed +69
-2
lines changed Original file line number Diff line number Diff line change 11apply plugin : ' java'
22apply 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+
420publish {
521 groupId = ' com.github.amatkivskiy'
622 artifactId = ' gitter.sdk.async'
Original file line number Diff line number Diff line change @@ -3,6 +3,22 @@ apply plugin: 'com.novoda.bintray-release'
33
44version ' 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+
622publish {
723 groupId = ' com.github.amatkivskiy'
824 artifactId = ' gitter.sdk.core'
@@ -17,4 +33,5 @@ publish {
1733dependencies {
1834 compile ' com.squareup.retrofit:retrofit:1.9.0'
1935 testCompile ' junit:junit:4.12'
20- }
36+ }
37+
Original file line number Diff line number Diff 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+
1329publish {
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+
Original file line number Diff line number Diff line change 11apply plugin : ' java'
22apply 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+
420publish {
521 groupId = ' com.github.amatkivskiy'
622 artifactId = ' gitter.sdk.sync'
@@ -14,5 +30,6 @@ publish {
1430
1531dependencies {
1632// compile 'com.github.amatkivskiy:gitter.sdk.core:1.5'
17- compile project(' :library:core' )
33+ compile project(' :library:core' )
1834}
35+
You can’t perform that action at this time.
0 commit comments