Skip to content

Commit 11e544b

Browse files
committed
Actual publishing fix
(famous last words)
1 parent 1be7a6e commit 11e544b

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

build.gradle.kts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,12 @@ allprojects {
5050
}
5151

5252
publications.withType<MavenPublication>().configureEach {
53-
artifact(emptyJavadocJar.get())
53+
val publication = this
54+
val javadocJar = tasks.register("${publication.name}JavadocJar", Jar::class) {
55+
archiveClassifier.set("javadoc")
56+
archiveBaseName.set("${archiveBaseName.get()}-${publication.name}")
57+
}
58+
artifact(javadocJar)
5459

5560
pom {
5661
name.set("Multiplatform Settings")

0 commit comments

Comments
 (0)