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

groovy-wrapper is incompatible with Gradle 8.3 #8

Closed
donbex opened this issue Aug 23, 2023 · 4 comments
Closed

groovy-wrapper is incompatible with Gradle 8.3 #8

donbex opened this issue Aug 23, 2023 · 4 comments

Comments

@donbex
Copy link

donbex commented Aug 23, 2023

In Gradle 8.3, the signature of the PathAssembler constructor was changed from PathAssembler(File gradleUserHome) to PathAssembler(File gradleUserHome, File projectDirectory), see gradle/gradle@f99941b#diff-b3518ab2e45cdc6c02d663c2302abde57f3934d833b62532d65860f8faad17fb, making the current version of groovy-wrapper incompatible with Gradle 8.3.

In my basic testing, simply updating

new Install(logger, new Download(logger, "gradlew", org.gradle.wrapper.Download.UNKNOWN_VERSION), new PathAssembler(gradleUserHome)),

to use new PathAssembler(gradleUserHome, rootDir)) appears to be enough to address the issue. However, a more careful fix will be necessary to preserve backwards compatibility.

@Cervator
Copy link
Member

Thank you for the report! Sorry to have missed this for a while, been rather crazy lately.

We coincidentally upgraded to Gradle 8.2 just a couple weeks ago via #9 and released as v2.2.0. Sounds like the same or similar issue, but I haven't tested specifically with 8.3. Want to see if that helps your use case?

Also from personal curiosity I'm always thrilled when somebody pops out of nowhere having noticed this tiny project, mind if I ask how you found it and what you're using it for? :-)

@donbex
Copy link
Author

donbex commented Sep 26, 2023

No worries, I understand. Yes, it looks like version 2.2.0 works with Gradle 8.3, at least in my limited testing.

My team's builds rely on Gradle and are relatively complex. We use Groovy for various ancillary scripting tasks, e.g. parsing JSON, and groovyw allows us to keep external build dependencies at a minimum, which is useful especially in CI environments. As for how we found it, I'm afraid I don't know: it was already in use before I joined my current employer.

@soloturn
Copy link

as we are on gradle-8.4 meanwhile this can be closed?

@donbex
Copy link
Author

donbex commented Oct 28, 2023

That's fine with me. As I said above, the recent changes seemed to fix the issue for me, although I didn't want to close it myself in case @Cervator had anything to add.

Anyway, I'll go ahead and close it now. Feel free to reopen if needed.

@donbex donbex closed this as completed Oct 28, 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

3 participants