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

Bad interaction with gradle pgp signing plugin. #224

Open
covers1624 opened this issue Jan 8, 2025 · 0 comments
Open

Bad interaction with gradle pgp signing plugin. #224

covers1624 opened this issue Jan 8, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@covers1624
Copy link
Member

Gradle's built-in signing plugin allows you to sign your entire publication with a pgp key. This generates .asc companion files for every file in your publication, these also get published.

When marking an access transformer, or interface injection manifest to be published, these files are added to the base java publication.

As a result, the signing plugin creates its companion files directly next to where ever these files exist in your project, src/main/resources/META-INF, in the case of access transformers.

I have created a smol build script to reproduce the issue, Place into the MDK.

This interaction is likely not an issue for most people where their pgp key is only available in CI, however, all my local builds published to mavenLocal, etc, are signed with my pgp key, resulting in nuisance files I have to ignore/gloss over/exclude from jars.

It seems most appropriate if these files are instead copied into the build/libs folder and registered as artifacts from there, somehow.

@Matyrobbrt Matyrobbrt added the bug Something isn't working label Jan 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants