Update Gradle wrapper to use correct files #242
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Background
The local Gradle wrapper-related files within the project do not match the expected files for the Gradle version specified within the
gradle-wrapper.properties
fileThis is likely occurring as the expected
./gradlew wrapper
call was not previously used to upgrade the wrapper and the file was edited manuallyTo confirm this locally, you can run
gradlew wrapper --gradle-version=8.7 --distribution-type=bin
locally and observe there's a difference in a number of the related wrapper filesWhat I've changed
This change contains the result of running the following command:
Running the above locally within the project will ensure the relevant Gradle wrapper files for Gradle 8.7 are added.
Additionally, by providing the expected SHA-256 checksum for the Gradle 8.7 distribution (source) in this way, a
distributionSha256Sum
property is created within gradle-wrapper.properties which provides additional protection against Gradle supply chain attacks by ensuring future downloads via thedistributionUrl
are matched against the checksum and failing the builds otherwise.See this post and relevant docs for more information.
Any questions, feel free to ask! ✨