openrewrite / rewrite

Automated mass refactoring of source code.

Home Page:https://docs.openrewrite.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

`UpgradeSpringBoot_3_2` changes `build.gradle` `sourceCompatibility` and `targetCompatibility` from 21 back to 17

aholland opened this issue · comments

Title says it all - sorry for the brief report! Also I think they should ideally be JavaVersion.21 in Gradle 8.5 (to be fair you might already be detecting which convention to use - I had a plain 21 before I ran the script).

You're right, that's a bug; pending a fix & release you might want to run this recipe instead, as that uses Java 21
https://docs.openrewrite.org/recipes/java/spring/boot3/springboot3bestpractices

Picked up in