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

Error when running with Gradle 8.4 #282

Closed
DenuxPlays opened this issue Oct 31, 2023 · 2 comments
Closed

Error when running with Gradle 8.4 #282

DenuxPlays opened this issue Oct 31, 2023 · 2 comments

Comments

@DenuxPlays
Copy link

This error appears:
image

I dont know what gradle tries to say me hopefully someone here can help me

@TWiStErRob
Copy link
Collaborator

TWiStErRob commented Oct 31, 2023

It's trying to say that your build produces signing artifacts that this plugin is trying to upload, but the build is not wired up to explicitly say this. This became a requirement I think in Gradle 8.0. See #208, of which this issue seems to be a duplicate.

Based on a quick skim it seems that there's a missing reproducer still that ties the problem to this plugin specifically. Please have a read and try to provide one if possible.

If you want to continue upgrading your Gradle in the meantime, pick solution 2 as a workaround, something like:

tasks.named(":publishReleasePublicationToSonatypeRepository").configure {
    dependsOn(":signArchives")
}

@DenuxPlays
Copy link
Author

Thank you.
This worked for me:

//Fix for publishing with gradle 8.x
tasks.withType<PublishToMavenRepository>().configureEach {
    dependsOn(":signArchives")
}

@TWiStErRob TWiStErRob closed this as not planned Won't fix, can't repro, duplicate, stale Nov 1, 2023
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

No branches or pull requests

2 participants