Skip to content

Commit

Permalink
Do not require signing artifacts when publishing locally (#3561)
Browse files Browse the repository at this point in the history
  • Loading branch information
IgnatBeresnev committed Apr 25, 2024
1 parent a807ae3 commit bcf7444
Showing 1 changed file with 3 additions and 1 deletion.
Expand Up @@ -93,7 +93,9 @@ signing {
System.getenv("DOKKA_SIGN_KEY_PASSPHRASE")?.takeIf(String::isNotBlank),
)
sign(publishing.publications)
setRequired(provider { !project.version.toString().endsWith("-SNAPSHOT") })
// no signing should be required for locally published artifacts,
// as they are used for manual testing and running integration tests only
setRequired(provider { gradle.taskGraph.allTasks.any { it is PublishToMavenRepository } })
}

// This is a hack for a Gradle 8 problem, see https://github.com/gradle/gradle/issues/26091
Expand Down

0 comments on commit bcf7444

Please sign in to comment.