Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upDuplicate key Signature gradle-code-quality-tools-plugin:jar.asc:asc: with Gradle 5.1 & Java Gradle Plugin #8213
Comments
vanniktech
referenced this issue
Jan 10, 2019
Closed
signArchives task fails with Duplicate key Signature plugin:jar.asc:asc: #38
This comment has been minimized.
This comment has been minimized.
I tried upgrading 5.1 in both https://github.com/vanniktech/gradle-maven-publish-plugin and https://github.com/vanniktech/gradle-code-quality-tools-plugin and running signArchives and neither failed because the task was skipped. I also tried whittling down your example with just the |
This comment has been minimized.
This comment has been minimized.
Weird. Maybe it's a machine specific problem? Just checking out https://github.com/vanniktech/gradle-maven-publish-plugin/tree/5.1-failing and executing
|
vanniktech
closed this
Jan 10, 2019
vanniktech
reopened this
Jan 10, 2019
This comment has been minimized.
This comment has been minimized.
Is there maybe something user specific that needs to be configured on my side? |
big-guy
added this to the 5.2 RC1 milestone
Jan 10, 2019
This comment has been minimized.
This comment has been minimized.
Oh yes. Totally forgot. You need to configure signing: signing.keyId=foo
signing.password=bar
signing.secretKeyRingFile=/home/user/.gnupg/secring.gpg Put these either inside |
This comment has been minimized.
This comment has been minimized.
ndw
commented
Jan 13, 2019
It's true that if you don't have those items configured, |
This comment has been minimized.
This comment has been minimized.
ndw
commented
Jan 13, 2019
I can also confirm that this a Gradle 5.1 regression; it works if I back down to 5.0. |
marcphilipp
self-assigned this
Jan 14, 2019
marcphilipp
removed this from the 5.2 RC1 milestone
Jan 14, 2019
This comment has been minimized.
This comment has been minimized.
There seem to be two problems:
The latter issue can be solved by applying the |
marcphilipp
closed this
Jan 14, 2019
marcphilipp
added
the
in:signing-plugin
label
Jan 14, 2019
This comment has been minimized.
This comment has been minimized.
koral--
commented
Jan 14, 2019
So, regardless of vanniktech/gradle-maven-publish-plugin#39 if |
This comment has been minimized.
This comment has been minimized.
Correct.
I think that's a good idea. The easiest would be to detect the |
vanniktech commentedJan 10, 2019
For publishing Jvm artifacts there has been the canonical script from Chris Banes - https://github.com/chrisbanes/gradle-mvn-push
I've wrapped that into a Gradle Plugin https://github.com/vanniktech/gradle-maven-publish-plugin
For both scripts starting with Gradle 5.1 and a module which has the Java Gradle Plugin applied
apply plugin: 'java-gradle-plugin'
thesignArchives
task fails:Are we somehow misusing the API or is this a regression between Gradle 5.1 and Gradle 5.0?
Every recent version before Gradle 5.1 (including Gradle 5.0 & Gradle 4.x) works fine without any problems. Additionally, plain Android/Java/Kotlin modules also work fine.
As for a reproduction sample you can use https://github.com/vanniktech/gradle-maven-publish-plugin bump the Gradle version to 5.1 and execute the
signArchives
task.