[RUN-0000] Update Gradle to v9 - #63
Conversation
There was a problem hiding this comment.
Pull request overview
Note
Copilot could not run the full agentic suite for this review because it was automatically requested on a bot-authored pull request. Request a review from Copilot under Reviewers to retry with the full agentic suite. Improved support for bot-authored pull requests is coming soon.
Updates the Gradle Wrapper scripts and configuration, primarily to upgrade the Gradle distribution and align wrapper scripts with newer generated templates (including SPDX headers and improved shell/cmd robustness).
Changes:
- Upgraded Gradle wrapper distribution URL to a newer Gradle version and added wrapper download validation/timeouts.
- Updated
gradlewandgradlew.batstartup scripts (SPDX header, revised messaging/flow, -jar invocation). - Improved POSIX script portability checks (e.g.,
command -v, addedxargsavailability check, updated APP_HOME resolution).
Reviewed changes
Copilot reviewed 3 out of 4 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
gradlew.bat |
Updates Windows wrapper script flow, error handling, and uses -jar invocation. |
gradlew |
Updates POSIX wrapper script template, adds SPDX header, improves command detection and APP_HOME resolution, switches to -jar. |
gradle/wrapper/gradle-wrapper.properties |
Upgrades Gradle distribution URL and adds wrapper network/validation properties. |
| echo. 1>&2 | ||
| echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 1>&2 | ||
| echo. 1>&2 | ||
| echo Please set the JAVA_HOME variable in your environment to match the 1>&2 | ||
| echo location of your Java installation. 1>&2 | ||
|
|
||
| goto fail | ||
| "%COMSPEC%" /c exit 1 |
| echo. 1>&2 | ||
| echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 1>&2 | ||
| echo. 1>&2 | ||
| echo Please set the JAVA_HOME variable in your environment to match the 1>&2 | ||
| echo location of your Java installation. 1>&2 | ||
|
|
||
| goto fail | ||
| "%COMSPEC%" /c exit 1 |
| endlocal & "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -jar "%APP_HOME%\gradle\wrapper\gradle-wrapper.jar" %* & call :exitWithErrorLevel | ||
|
|
||
| :omega | ||
| :exitWithErrorLevel | ||
| @rem Use "%COMSPEC%" /c exit to allow operators to work properly in scripts | ||
| "%COMSPEC%" /c exit %ERRORLEVEL% |
826204f to
aee4bc3
Compare
Renovate Ignore NotificationBecause you closed this PR without merging, Renovate will ignore this update. You will not get PRs for any future If you accidentally closed this PR, or if you changed your mind: rename this PR to get a fresh replacement PR. |
This PR contains the following updates:
8.14.5→9.7.0Configuration
📅 Schedule: (UTC)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.