Skip to content

Conversation

Tharanishwaran
Copy link

This PR implements the feature requested in issue #1689. Spring Boot 3.x will continue to use Gradle 8, while Spring Boot 4.x will use Gradle 9.

  • Add support for Gradle 9 in generated projects when using Spring Boot 4.x
  • Continue using Gradle 8 for Spring Boot 3.x projects
  • Create Gradle 9 wrapper files with the latest Gradle 9.0 version
  • Update the OnGradleVersionCondition class to determine which Gradle version to use based on Spring Boot version
  • Add Gradle9ProjectGenerationConfiguration class to contribute Gradle 9 wrapper files

All tests pass, confirming that the implementation works correctly.

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Sep 5, 2025
@mhalbritter mhalbritter changed the title Add Gradle 9 support for Spring Boot 4.x projects Use Gradle 9 for generated projects Sep 8, 2025
@mhalbritter mhalbritter self-assigned this Sep 8, 2025
@mhalbritter mhalbritter added type: enhancement and removed status: waiting-for-triage An issue we've not yet triaged labels Sep 8, 2025
@mhalbritter mhalbritter added this to the 0.23.0 milestone Sep 8, 2025
mhalbritter pushed a commit that referenced this pull request Sep 8, 2025
mhalbritter added a commit that referenced this pull request Sep 8, 2025
Ensure that the gradle wrapper scripts and jar file is
genuine by recreating them from scratch.

See gh-1698
mhalbritter added a commit that referenced this pull request Sep 8, 2025
@mhalbritter
Copy link
Contributor

Thanks @Tharanishwaran !

FTR, I recreated the Gradle wrapper jar and scripts from scratch, just to absolutely make sure they are genuine.

@Tharanishwaran
Copy link
Author

@mhalbritter Many thanks for the merge and security improvements on the wrapper files.
Excited to continue contributing to Spring projects!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants