spring-cloud-gateway icon indicating copy to clipboard operation
spring-cloud-gateway copied to clipboard

Update to Maven Wrapper 3.3.4 and Maven 3.9.11

Open breun opened this issue 4 months ago • 2 comments

  • Use distribution type only-script and remove maven-wrapper.jar
  • Specify distributionSha256Sum to verify integrity of Maven distribution

Note that the changes to the mvnw* scripts (and the distributionUrl property) can be reproduced by running mvn wrapper:3.3.4:wrapper -Dmaven=3.9.11.

breun avatar Aug 31 '25 23:08 breun

Can I ask the purpose of this. All of the spring cloud projects are the same

spencergibb avatar Aug 31 '25 23:08 spencergibb

This PR updates the Maven and Maven Wrapper versions from versions which are a couple of years old -- Maven 3.9.0 is from 2023-01-31 and Maven Wrapper 3.1.1 is from 2022-05-08 -- to the current versions.

One of the benefits is that Maven Wrapper's new only-script type no longer requires the binary maven-wrapper.jar to be part of the project repository, and another one is that Maven Wrapper now has a feature to check the integrity of the Maven distribution that is pulled in. There are other bug fixes, new features, etc. as well of course.

I created a PR for this Spring Cloud project first, but I'm willing to create similar PRs for the other ones.

breun avatar Sep 02 '25 10:09 breun