From dd96cfc9b463889d24ab14968dfe0a53dff5ccb3 Mon Sep 17 00:00:00 2001 From: Philipp Schirmer Date: Mon, 26 Feb 2024 19:19:50 +0100 Subject: [PATCH] Use Gradle Nexus Publish Plugin --- .../src/main/kotlin/com/bakdata/gradle/SonatypePlugin.kt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/sonatype/src/main/kotlin/com/bakdata/gradle/SonatypePlugin.kt b/sonatype/src/main/kotlin/com/bakdata/gradle/SonatypePlugin.kt index 65a364e..2fbf514 100644 --- a/sonatype/src/main/kotlin/com/bakdata/gradle/SonatypePlugin.kt +++ b/sonatype/src/main/kotlin/com/bakdata/gradle/SonatypePlugin.kt @@ -215,9 +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() //TODO support dokka + withJavadocJar() } configure {