diff --git a/sonatype/src/main/kotlin/com/bakdata/gradle/SonatypePlugin.kt b/sonatype/src/main/kotlin/com/bakdata/gradle/SonatypePlugin.kt index 2afde67..e345999 100644 --- a/sonatype/src/main/kotlin/com/bakdata/gradle/SonatypePlugin.kt +++ b/sonatype/src/main/kotlin/com/bakdata/gradle/SonatypePlugin.kt @@ -215,19 +215,14 @@ class SonatypePlugin : Plugin { apply(plugin = "signing") apply(plugin = "org.gradle.maven-publish") - val javadocJar by tasks.creating(Jar::class) { - archiveClassifier.set("javadoc") - from(tasks.findByName("javadoc") ?: tasks.findByName("dokka")) - } - configure { withSourcesJar() + withJavadocJar() } configure { publications.create("sonatype") { from(components["java"]) - artifact(javadocJar) } }