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

Add signing to dev.galasa.extensions.manifest artifact #260

Merged
merged 3 commits into from
Aug 14, 2024
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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