Finish publishing plugin... (#3341)

This commit is contained in:
Anuraag Agrawal 2021-06-17 16:40:05 +09:00 committed by GitHub
parent 2a0a5c4f41
commit c9207fec4d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 13 additions and 0 deletions

View File

@ -90,3 +90,16 @@ fun artifactPrefix(p: Project, archivesBaseName: String): String {
}
return "opentelemetry-"
}
rootProject.tasks.named("release").configure {
finalizedBy(tasks["publishToSonatype"])
}
// Stub out entire signing block off of CI since Gradle provides no way of lazy configuration of
// signing tasks.
if (System.getenv("CI") != null) {
signing {
useInMemoryPgpKeys(System.getenv("GPG_PRIVATE_KEY"), System.getenv("GPG_PASSWORD"))
sign(publishing.publications["maven"])
}
}