diff --git a/build.gradle b/build.gradle index e34bf7719..6e2ceb593 100644 --- a/build.gradle +++ b/build.gradle @@ -6,6 +6,7 @@ plugins { id "org.sonarqube" version "4.4.1.3373" id 'maven-publish' id 'com.github.johnrengelman.shadow' version '8.0.0' + id 'signing' } group 'io.firebolt' @@ -331,6 +332,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'