Skip to content

Commit

Permalink
build: add artifact signing (#441)
Browse files Browse the repository at this point in the history
  • Loading branch information
stepansergeevitch authored Jul 3, 2024
1 parent 805056a commit ec13fb5
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -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'
Expand Down

0 comments on commit ec13fb5

Please sign in to comment.