Skip to content
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

Add signing for release artifacts #148

Merged
merged 1 commit into from
Aug 8, 2023

Conversation

mdedetrich
Copy link
Contributor

I havent tried this out yet, mainly just used the instructions from https://docs.gradle.org/current/userguide/signing_plugin.html#sec:signing_publications but I suspect we will find out if the signing works when we get there.

@mdedetrich mdedetrich force-pushed the add-signing-for-release branch 2 times, most recently from e6b3b78 to afc0e3a Compare August 7, 2023 21:55
@mdedetrich
Copy link
Contributor Author

mdedetrich commented Aug 7, 2023

Ill work on this more tomorrow, seems like we are using such an old version of gradle that the way to setup signing is different.

setRequired({
isReleaseVersion && gradle.taskGraph.hasTask("publish")
})
useGpgCmd()
Copy link
Contributor Author

@mdedetrich mdedetrich Aug 8, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Gradle will use JVM signing by default, useGpgCmd() is set because people such as myself have their signing key stored on a key device (i.e. YubiKey) which doesn't work with JVM signing.

Its also consistent with sbt-gpg (which also uses gpg).

Copy link
Contributor

@pjfanning pjfanning left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@mdedetrich mdedetrich merged commit 81381d9 into apache:main Aug 8, 2023
16 checks passed
@mdedetrich mdedetrich deleted the add-signing-for-release branch August 8, 2023 09:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants