Finish publishing plugin... (#3341)
This commit is contained in:
parent
2a0a5c4f41
commit
c9207fec4d
|
@ -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"])
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue