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 (#260)
Browse files Browse the repository at this point in the history
* Add signing to dev.galasa.extensions.manifest artifact

Signed-off-by: Eamonn Mansour <[email protected]>

* Remove duplicate framework dependencies, Bump versions in parent build.gradle

Signed-off-by: Eamonn Mansour <[email protected]>

---------

Signed-off-by: Eamonn Mansour <[email protected]>
  • Loading branch information
eamansour authored Aug 14, 2024
1 parent 15955c6 commit 1365ed3
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 12 deletions.
24 changes: 15 additions & 9 deletions galasa-extensions-parent/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,10 @@ 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
}
}
version = '0.37.0'

//---------------------------------------------------------------
// We need to gather the release and packaging metadata from each
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 All @@ -161,7 +167,7 @@ publishing {
name = "Manifest for extensions bundle versions"
artifactId = "dev.galasa.extensions.manifest"
groupId = 'dev.galasa'
version = "0.36.0"
version = '0.37.0'
description = "Conveys bundle version information to OBR builds."
licenses {
license {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ version = '0.37.0'

dependencies {
implementation 'dev.galasa:kafka.clients:3.7.0'
implementation 'dev.galasa:dev.galasa.framework:0.37.0'

testImplementation(project(':dev.galasa.extensions.mocks'))
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ dependencies {
implementation ('org.apache.httpcomponents:httpclient-osgi:4.5.13')
implementation ('org.apache.httpcomponents:httpcore-osgi:4.4.14')
implementation ('com.google.code.gson:gson:2.10.1')
implementation ('dev.galasa:dev.galasa.framework:0.37.0')
implementation ('junit:junit:4.13.1')
implementation ('org.assertj:assertj-core:3.16.1')
implementation (project(':dev.galasa.extensions.common'))
Expand Down
3 changes: 2 additions & 1 deletion set-version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -106,13 +106,14 @@ function bump_version {
cat $source_file | sed "s/dev.galasa.framework:.*'/dev.galasa.framework:$component_version'/1" > $temp_file
cp $temp_file $source_file

cat $source_file | sed "s/version = '.*'/version = '$component_version'/1" > $temp_file
cat $source_file | sed "s/version[ ]*=.*/version = '$component_version'/1" > $temp_file
cp $temp_file $source_file
}


# Extensions base
bump_version $BASEDIR/galasa-extensions-parent/buildSrc/src/main/groovy/galasa.extensions.gradle $temp_dir/galasa.extensions.gradle
bump_version $BASEDIR/galasa-extensions-parent/build.gradle $temp_dir/extensions-parent.build.gradle

# Couchdb...
bump_version $BASEDIR/galasa-extensions-parent/dev.galasa.ras.couchdb/build.gradle $temp_dir/couchdb-build.gradle
Expand Down

0 comments on commit 1365ed3

Please sign in to comment.