forked from odpi/egeria
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ensure artifacts are signed, and correct name in pom for bom
Signed-off-by: Nigel Jones <[email protected]>
- Loading branch information
Showing
2 changed files
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -371,8 +371,23 @@ publishing { | |
pom.withXml { | ||
// NOTE - this subproject is similar to the root project in maven, in that it defines the BOM | ||
asNode().appendNode('description', "${project.description}") | ||
asNode().appendNode('name', "${project.name}") | ||
} | ||
} | ||
} | ||
} | ||
if (System.getenv("CI")) { | ||
apply plugin: 'signing' | ||
signing { | ||
// gpg --export-secret-keys [email protected] | base64 | ||
def signingKey = System.getenv('OSSRH_GPG_PRIVATE_KEY') | ||
// Passphrase for key | ||
def signingPassword = System.getenv('OSSRH_GPG_PASSPHRASE') | ||
// public key id (last 8 characters only) - note keys also need uploading to all the main registries | ||
def signingKeyId = System.getenv('OSSRH_GPG_KEYID') | ||
// We use these values from secrets rather than gradle.properties | ||
useInMemoryPgpKeys(signingKeyId, signingKey, signingPassword) | ||
sign publishing.publications.connector | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -170,6 +170,20 @@ subprojects { | |
} | ||
|
||
} | ||
if (System.getenv("CI")) { | ||
apply plugin: 'signing' | ||
signing { | ||
// gpg --export-secret-keys [email protected] | base64 | ||
def signingKey = System.getenv('OSSRH_GPG_PRIVATE_KEY') | ||
// Passphrase for key | ||
def signingPassword = System.getenv('OSSRH_GPG_PASSPHRASE') | ||
// public key id (last 8 characters only) - note keys also need uploading to all the main registries | ||
def signingKeyId = System.getenv('OSSRH_GPG_KEYID') | ||
// We use these values from secrets rather than gradle.properties | ||
useInMemoryPgpKeys(signingKeyId, signingKey, signingPassword) | ||
sign publishing.publications.connector | ||
} | ||
} | ||
} | ||
|
||
// Always need these repos | ||
|