1
0
Fork 0
mirror of https://github.com/pgpainless/pgpainless.git synced 2024-12-26 12:58:02 +01:00

gradle: use gpg (agent) for signing

This commit is contained in:
Florian Schmaus 2020-04-14 15:21:13 +02:00
parent f0583a6706
commit 819847be4b

View file

@ -60,7 +60,7 @@ allprojects {
builtDate = (new SimpleDateFormat("yyyy-MM-dd")).format(new Date())
isContinuousIntegrationEnvironment = Boolean.parseBoolean(System.getenv('CI'))
isReleaseVersion = !isSnapshot
signingRequired = isReleaseVersion
signingRequired = !(isSnapshot || isContinuousIntegrationEnvironment)
sonatypeCredentialsAvailable = project.hasProperty('sonatypeUsername') && project.hasProperty('sonatypePassword')
sonatypeSnapshotUrl = 'https://oss.sonatype.org/content/repositories/snapshots'
sonatypeStagingUrl = 'https://oss.sonatype.org/service/local/staging/deploy/maven2'
@ -162,6 +162,7 @@ subprojects {
}
signing {
useGpgCmd()
required { signingRequired }
sign publishing.publications.mavenJava
}