Skip to content
This repository was archived by the owner on Sep 16, 2024. It is now read-only.

Commit 6b15b56

Browse files
committed
Added javadocJar task
1 parent 38888de commit 6b15b56

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

build.gradle

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,11 @@ task sourcesJar(type: Jar, dependsOn: classes) {
3939
from sourceSets.main.allJava
4040
}
4141

42+
task javadocJar(type: Jar, dependsOn: javadoc) {
43+
classifier "javadoc"
44+
from file(javadocsDir + "/" + project.name)
45+
}
46+
4247
javadoc.destinationDir = file(javadocsDir + "/" + project.name)
4348
javadoc.failOnError = false
4449

@@ -51,14 +56,17 @@ publishing {
5156
from components.java
5257
artifact sourcesJar
5358
}
59+
mavenJavadoc(MavenPublication) {
60+
artifact javadocJar
61+
}
5462
}
5563
}
5664

5765
if (project.hasProperty("myBintrayUser")) {
5866
bintray {
5967
user = myBintrayUser
6068
key = myBintrayKey
61-
publications = ['mainJava', 'sourcesJava']
69+
publications = ['mainJava', 'sourcesJava', 'mavenJavadoc']
6270
pkg {
6371
repo = 'maven'
6472
name = project.name

0 commit comments

Comments
 (0)