-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added Jreleaser #174
Added Jreleaser #174
Conversation
Thanks for the contribution. Unfortunately some of your commits don't meet our standards. All commits must be signed and have author information set. The commits to review are:
See Signed Commits. |
Thanks for the contribution. Before we can merge this, we need @mburkert3, @mburkert3 to sign the Contributor License Agreement |
Question. JReleaser is for releasing to central right? The existing logic handles publishing to the gradle plugin portal? |
build.gradle
Outdated
// Configure signing | ||
signing { | ||
useInMemoryPgpKeys(System.getenv('GPG_SIGNING_KEY'), System.getenv('GPG_PASSPHRASE')) | ||
sign publishing.publications.maven | ||
|
||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would this attempt to sign the compiled binary in local development as well?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1, Looks good to me. Just curious to make sure the Base84 decode of the GPG key is handled somewhere, as the secret is base64 encoded.
build.gradle
Outdated
} | ||
} | ||
} | ||
} | ||
|
||
// Configure signing | ||
signing { | ||
useInMemoryPgpKeys(System.getenv('GPG_SIGNING_KEY'), System.getenv('GPG_PASSPHRASE')) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will this handle decoding the base64 encoded PGP signing key?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe the useInMemoryPGPKeys should handle that
Thanks for the contribution. Unfortunately some of your commits don't meet our standards. All commits must be signed and have author information set. The commits to review are:
See Signed Commits. |
Thanks for the contribution. Unfortunately some of your commits don't meet our standards. All commits must be signed and have author information set. The commits to review are:
See Signed Commits. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1
if (System.getenv('RELEASE_BUILD') == 'true') { | ||
signing { | ||
def final encodedKey = System.getenv('GPG_SIGNING_KEY') | ||
def final signingKey = new String(encodedKey.decodeBase64()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1
Added JReleaser so we can publish directly to maven central
It relates to the following issue #s:
BNR-1226
cc @bhamail / @DarthHater / @guillermo-varela / @shaikhu