diff --git a/src/main/kotlin/io/johnsonlee/gradle/publish/KotlinLibraryPublishPlugin.kt b/src/main/kotlin/io/johnsonlee/gradle/publish/KotlinLibraryPublishPlugin.kt index 89d8edb..cded962 100644 --- a/src/main/kotlin/io/johnsonlee/gradle/publish/KotlinLibraryPublishPlugin.kt +++ b/src/main/kotlin/io/johnsonlee/gradle/publish/KotlinLibraryPublishPlugin.kt @@ -21,6 +21,7 @@ open class KotlinLibraryPublishPlugin : AbstractLibraryPublishPlugin() { register("mavenJava", MavenPublication::class) { val sourceSets = the() val javadocJar = tasks.register("packageJavadocFor${name.capitalize()}", Jar::class.java) { + dependsOn("dokkaHtml") archiveClassifier.set("javadoc") from(tasks["dokkaHtml"]) } @@ -44,4 +45,4 @@ open class KotlinLibraryPublishPlugin : AbstractLibraryPublishPlugin() { } } -} \ No newline at end of file +}