-
-
Notifications
You must be signed in to change notification settings - Fork 7
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
Support using this plugin out of maven projects #141
Comments
When you build your project by gradle, you can use gradle Signing plugin, you can provide keys in environment variables https://docs.gradle.org/current/userguide/signing_plugin.html#sec:in-memory-keys |
@slawekjaranowski Thank you for your response. |
Maven artifacts are immutable by design. |
I'm not changing my Artifacts. The other option will be copying the whole .gnupg directory and exporting it to all my agents in the cloud or by using a docker and pasting that directory there but it seems too complicated and kind of messy |
I'm using mvn gpg:sign-and-deploy-file to sign and create a staging repo from an existing artifact (Built using Gradle in android) before publishing it to the Nexus repo (Sonatype)
The main issue I'm facing currently is using this method in CI/CD because I need to share the same gpg key across all my agents in the cloud.
I would like to have a Solution as you provide, signing with the private key stored in environment variables without need to copy and share the full .gnupg directory.
Is there a way to use your plugin in that kind of situation? in all the examples I see a project pom.xml file but I don't have one, if you have a way to do that using CLI commands it will be great...
Thanks
The text was updated successfully, but these errors were encountered: