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

Dependency Extraction Fails for Gradle < 6 #5424

Closed
jGleitz opened this issue Feb 10, 2020 · 5 comments · Fixed by #5428 or #5431
Closed

Dependency Extraction Fails for Gradle < 6 #5424

jGleitz opened this issue Feb 10, 2020 · 5 comments · Fixed by #5428 or #5431
Assignees
Labels
manager:gradle Gradle package manager priority-3-medium Default priority, "should be done" but isn't prioritised ahead of others

Comments

@jGleitz
Copy link
Contributor

jGleitz commented Feb 10, 2020

As reported in #4471:

The new gradle extraction script depends on a type that was introduced with Gradle 6, leading to error like this when it is executed on against a project with a Gradl 5 wrapper:

FAILURE: Build failed with an exception.\n\n* Where:\nInitialization script '/mnt/renovate/gh/moltenbits/renovate-gradle-bug/renovate-plugin.gradle' line: 4\n\n* What went wrong:\nCould not compile initialization script '/mnt/renovate/gh/moltenbits/renovate-gradle-bug/renovate-plugin.gradle'.\n> startup failed:\n  initialization script '/mnt/renovate/gh/moltenbits/renovate-gradle-bug/renovate-plugin.gradle': 4: unable to resolve class org.gradle.api.artifacts.repositories.UrlArtifactRepository\n   @ line 4, column 1.\n     import org.gradle.api.artifacts.repositories.UrlArtifactRepository
@JamieMagee JamieMagee added manager:gradle Gradle package manager priority-3-medium Default priority, "should be done" but isn't prioritised ahead of others labels Feb 10, 2020
@viceice
Copy link
Member

viceice commented Feb 10, 2020

@rarkins I think we have to use different gradle scripts for gradle 5 and 6

@JamieMagee JamieMagee self-assigned this Feb 10, 2020
@JamieMagee
Copy link
Contributor

Or use java.net.URI instead of UrlArtifactRepository directly?

@viceice
Copy link
Member

viceice commented Feb 10, 2020

if you know how to 😅

@renovate-release
Copy link
Collaborator

🎉 This issue has been resolved in version 19.129.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

@renovate-release
Copy link
Collaborator

🎉 This issue has been resolved in version 19.129.3 🎉

The release is available on:

Your semantic-release bot 📦🚀

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 16, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
manager:gradle Gradle package manager priority-3-medium Default priority, "should be done" but isn't prioritised ahead of others
Projects
None yet
4 participants