Skip to content
This repository has been archived by the owner on Nov 4, 2024. It is now read-only.

Commit

Permalink
Add signing to dev.galasa.extensions.manifest artifact
Browse files Browse the repository at this point in the history
Signed-off-by: Eamonn Mansour <[email protected]>
  • Loading branch information
eamansour committed Aug 13, 2024
1 parent 599a59b commit 1918bdc
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions galasa-extensions-parent/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,11 @@ plugins {
id 'biz.aQute.bnd.builder' version '5.3.0' apply false
id 'dev.galasa.githash' version '0.15.0' apply false
id 'maven-publish'
id 'signing'
}

version = '0.36.0'

task clean {
// make sure the build directory is gone
doFirst {
delete layout.buildDirectory
}
}

//---------------------------------------------------------------
// We need to gather the release and packaging metadata from each
// sub-project, to generate a release.yaml document which can act
Expand Down Expand Up @@ -148,6 +142,18 @@ subprojects {
task allDeps(type: DependencyReportTask) {}
}

signing {
def signingKeyId = findProperty("signingKeyId")
def signingKey = findProperty("signingKey")
def signingPassword = findProperty("signingPassword")
useInMemoryPgpKeys(signingKeyId, signingKey, signingPassword)
sign publishing.publications
}

tasks.withType(Sign) {
onlyIf { isMainOrRelease.toBoolean() }
}

// Publish the release.yaml as a maven artifact.
// Note: The maven co-ordinates are versioned using the version for this bundle.
publishing {
Expand Down

0 comments on commit 1918bdc

Please sign in to comment.