Skip to content

Commit

Permalink
fix: javadoc classifier and sign dependency (#128)
Browse files Browse the repository at this point in the history
  • Loading branch information
vgarciabnz authored Apr 12, 2024
1 parent 4f4eabc commit 3c8dcc2
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ val dokkaHtml = tasks.findByName("dokkaHtml")!!
val dokkaHtmlJar = tasks.register<Jar>("dokkaHtmlJar") {
dependsOn(dokkaHtml)
from(dokkaHtml.outputs)
archiveClassifier.set("docs")
archiveClassifier.set("javadoc")
}

publishing {
Expand Down Expand Up @@ -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<AbstractPublishToMaven>().configureEach {
val signingTasks = tasks.withType<Sign>()
mustRunAfter(signingTasks)
}

0 comments on commit 3c8dcc2

Please sign in to comment.