Skip to content

Fix UpdateGradleWrapper emitting malformed CLASSPATH for Gradle 8.14+#7565

Closed
timtebeek wants to merge 1 commit intomainfrom
tim/issue-7564
Closed

Fix UpdateGradleWrapper emitting malformed CLASSPATH for Gradle 8.14+#7565
timtebeek wants to merge 1 commit intomainfrom
tim/issue-7564

Conversation

@timtebeek
Copy link
Copy Markdown
Member

Summary

  • Fixes UpdateGradleWrapper emits malformed CLASSPATH="\\\"\\\"" for Gradle 8.14.x #7564: UpdateGradleWrapper emitted CLASSPATH="\\\"\\\"" instead of the official CLASSPATH= for the pre-computed unix wrapper scripts targeting Gradle 8.14.x through 9.0.x.
  • Sets the classpath binding in GradleWrapperScriptDownloader.unixBindings() to "" for both the 8.14-rc-1+ and 9.0-milestone-2+ ranges (matching the existing 9.1.0+ branch), and removes the compensating .replace() in renderTemplate().
  • Regenerated the affected pre-computed resource files (b67a59d5.txt8e765725.txt, 665958e3.txt47c95633.txt), updated versions.csv, and corrected the gradlew-8.14 test fixture.

Test plan

  • ./gradlew :rewrite-gradle:test --tests "org.openrewrite.gradle.UpdateGradleWrapperTest" (34 passing, including usesExecutableJarFrom8_14)
  • ./gradlew :rewrite-gradle:test --tests "org.openrewrite.gradle.internal.GradleWrapperScriptLoaderTest" --tests "org.openrewrite.gradle.internal.GradleWrapperTest"

The pre-computed unix wrapper scripts for Gradle 8.14.x and 9.0.x
contained `CLASSPATH="\\\"\\\""` instead of the empty `CLASSPATH=`
emitted by the official Gradle wrapper template. Set the binding to
empty (matching the 9.1.0+ branch) and remove the compensating
post-processing replace, then regenerate the affected resource files.

Fixes #7564
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

UpdateGradleWrapper emits malformed CLASSPATH="\\\"\\\"" for Gradle 8.14.x

1 participant