Skip to content

Commit

Permalink
- Fix signing plugin
Browse files Browse the repository at this point in the history
- Sign before publish in GH action
- Fix pom tags
  • Loading branch information
aaneja committed Feb 24, 2025
1 parent a5e5157 commit e89c2fb
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,12 +108,12 @@ jobs:
echo "nexusUsername=${{ secrets.NEXUS_USERNAME }}" >> gradle.properties
echo "nexusPassword=${{ secrets.NEXUS_PASSWORD }}" >> gradle.properties
- name: Publish release
- name: Sign and publish release
run: |
cat gradle.properties
export NEXUS_USERNAME="${{ secrets.NEXUS_USERNAME }}"
export NEXUS_PASSWORD="${{ secrets.NEXUS_PASSWORD }}"
./gradlew publish
./gradlew sign publish
- name: Update release version in build.gradle
run: |
Expand Down
25 changes: 21 additions & 4 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -115,11 +115,9 @@ ext.tempto_kafka = project(':tempto-kafka')
ext.expected_result_generator = project(':expected-result-generator')
ext.tempto_version = '1.54-SNAPSHOT'
ext.tempto_group = "io.prestodb.tempto"
ext.isReleaseVersion = !tempto_version.endsWith("SNAPSHOT")

ext.nexusUsername = 'setup_nexusUsername_in_gradle.properties'
ext.nexusPassword = 'setup_nexusPassword_in_gradle.properties'
ext.skipSigning = false


subprojects {
Expand Down Expand Up @@ -153,8 +151,8 @@ configure(subprojects - expected_result_generator - tempto_examples) {
}

signing {
required { isReleaseVersion && !skipSigning }
sign configurations.archives
sign publishing.publications
useGpgCmd() //Use system provide GPG
}

// publishing to sonatype
Expand All @@ -171,6 +169,25 @@ configure(subprojects - expected_result_generator - tempto_examples) {
packaging = 'jar'
description = 'Tempto - test framework'
url = 'https://github.com/prestodb/tempto'

licenses {
license {
name = "The Apache License, Version 2.0"
url = "http://www.apache.org/licenses/LICENSE-2.0.txt"
}
}
developers {
developer {
id = 'prestodb'
name = 'PrestoDb'
email = '[email protected]'
}
}
scm {
url = '[email protected]:prestodb/tempto.git'
connection = 'scm:git:[email protected]:prestodb/tempto.git'
developerConnection = 'scm:git:[email protected]:prestodb/tempto.git'
}
}
}
}
Expand Down

0 comments on commit e89c2fb

Please sign in to comment.