Skip to content

Commit 7c7a0ee

Browse files
committed
adding javadoc and sources publications
1 parent 92ed994 commit 7c7a0ee

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

build.gradle

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,18 @@ repositories {
1515
maven { url "http://repo.bodar.com" }
1616
}
1717

18+
task javadocsJar(type: Jar, dependsOn: shadowJar) {
19+
from javadoc
20+
baseName = 'javarepl'
21+
classifier = 'javadoc'
22+
}
23+
24+
task sourcesJar(type: Jar, dependsOn: shadowJar) {
25+
baseName = 'javarepl'
26+
classifier = 'sources'
27+
from sourceSets.main.allSource
28+
}
29+
1830
publishing {
1931
repositories {
2032
jcenter()
@@ -28,10 +40,18 @@ publishing {
2840
}
2941
}
3042

43+
artifacts {
44+
archives javadocsJar
45+
archives sourcesJar
46+
}
47+
48+
49+
3150
bintray {
3251
user = System.getenv("BINTRAY_USERNAME")
3352
key = System.getenv("BINTRAY_API_KEY")
3453
publications = ['shadow']
54+
configurations = ['archives']
3555
publish = true
3656

3757
pkg {

0 commit comments

Comments
 (0)