Open sschuberth opened 4 years ago
@sschuberth We are now intentionally attempting to minimize changes to the gradle-wrapper.jar
file between releases. As such, there are now versions of the gradle-wrapper.jar
that match multiple releases because the SHA-256 checksum won't have changed.
I see. Would it still make sense to output the most recent Gradle version the wrapper currently matches for?
Theoretically, we could output a range of version matches. @eskatos what do you think?
@sschuberth what need are you looking to satisfy?
@sschuberth what need are you looking to satisfy?
I'm looking for some indication whether committed wrapper JARs might be outdated WRT the latest version available. If my committed wrapper JAR is the one from, say, Gradle 4.6, but my gradle-wrapper.properties
points at Gradle 6.3, then it's quite likely that the wrapper JAR has been updated in between, and I might want to update it.
The background is that probably not many users are aware that running the wrapper
task (once) does not update the wrapper JAR. Also see my PR https://github.com/gradle/gradle/pull/12671.
That makes sense.
Somewhat outside the scope of this project, but I can see why that would be useful.
I'm happy to review a PR that adds this functionality if you want to contribute something.
I'm happy to review a PR that adds this functionality if you want to contribute something.
I don't think I'll ever find the time to implement this due to my non-existing TypeScript skills. So, should we close this, or leave it open for some one else to work on eventually?
Now that we have the wrapper checksums available locally, it should be pretty easy to implement this feature. I'll leave it open for now.
In addition to know that a wrapper JAR successfully validated, it would also be nice to see in the console output which version was actually found to be a match.