diff --git a/build.gradle b/build.gradle index bb29269f4..7c332e1e5 100644 --- a/build.gradle +++ b/build.gradle @@ -6,6 +6,7 @@ plugins { id "org.sonarqube" version "5.0.0.4638" id 'maven-publish' id 'com.github.johnrengelman.shadow' version '8.0.0' + id 'signing' } group 'io.firebolt' @@ -334,6 +335,14 @@ task generateJavadoc(type: Javadoc) { options.addStringOption('Xdoclint:none', '-quiet') } +signing { + def signingKey = System.getenv("GRADLE_SIGNING_KEY") + def signingPassword = System.getenv("GRADLE_SIGNING_PASSWORD") + useInMemoryPgpKeys(signingKey, signingPassword) + + sign publishing.publications +} + if (hasProperty('buildScan')) { buildScan { termsOfServiceUrl = 'https://gradle.com/terms-of-service'