Skip to content

Commit 130dc9f

Browse files
committed
Add empty xxx-javadoc.jar for Maven Central
1 parent dffb669 commit 130dc9f

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

gradle/publish-bintray.gradle

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,12 @@ task sourcesJar(type: Jar) {
3838
from "src/main/kotlin"
3939
}
4040

41+
// empty xxx-javadoc.jar
42+
task javadocJar(type: Jar) {
43+
classifier = 'javadoc'
44+
from "$buildDir/javadoc" // would not exist
45+
}
46+
4147
if (!project.name.endsWith("-native")) {
4248
publishing {
4349
repositories {
@@ -47,6 +53,7 @@ if (!project.name.endsWith("-native")) {
4753
maven(MavenPublication) {
4854
from components.java
4955
artifact sourcesJar
56+
artifact javadocJar
5057
if (project.name.endsWith("-maven-plugin")) {
5158
pom.with {
5259
packaging = 'maven-plugin'

0 commit comments

Comments
 (0)