From 3c8dcc21b3853207d8082eed696a3d92b018f1cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Garc=C3=ADa?= Date: Fri, 12 Apr 2024 12:25:42 +0200 Subject: [PATCH] fix: javadoc classifier and sign dependency (#128) --- .../src/main/kotlin/maven-publish-conventions.gradle.kts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/buildSrc/src/main/kotlin/maven-publish-conventions.gradle.kts b/buildSrc/src/main/kotlin/maven-publish-conventions.gradle.kts index d46bbebd..485d8e5b 100644 --- a/buildSrc/src/main/kotlin/maven-publish-conventions.gradle.kts +++ b/buildSrc/src/main/kotlin/maven-publish-conventions.gradle.kts @@ -15,7 +15,7 @@ val dokkaHtml = tasks.findByName("dokkaHtml")!! val dokkaHtmlJar = tasks.register("dokkaHtmlJar") { dependsOn(dokkaHtml) from(dokkaHtml.outputs) - archiveClassifier.set("docs") + archiveClassifier.set("javadoc") } publishing { @@ -72,3 +72,10 @@ signing { useInMemoryPgpKeys(signingPrivateKey, signingPassword) sign(publishing.publications) } + +// Fix Gradle warning about signing tasks using publishing task outputs without explicit dependencies +// https://github.com/gradle/gradle/issues/26091 +tasks.withType().configureEach { + val signingTasks = tasks.withType() + mustRunAfter(signingTasks) +}