New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
spring-boot-maven-plugin doesn't work with Java 22 #39927
Comments
Can reproduce this. Here's the stacktrace:
|
Same with 3.3.0-SNAPSHOT. |
The maven plugin uses spring-core:6.0.10:
but otherwise a current version of the framework dependencies:
Is that because of the dependencies on |
Oh dear. Those mixed versions are bad. We had to downgrade to Framework 6.0.x in the build plugin-related projects to work around this Gradle bug that's been fixed in Gradle 7.6.4. As a first step, I think we should try to configure the Maven plugin to consistently use 6.1.x. As a second step, and probably in a separate issue, we'll have to figure out what to do about Gradle. I'm not sure how we can both support Java 22 and Gradle versions < 7.6.4. We could raise the minimum supported version of Gradle for Boot 3.3 but that'd still leave us with a problem in Boot 3.2.x. |
Gradle does not yet support Java 22. 8.7, currently in its RC phase will support using a Java 22 toolchain but won't support running Gradle itself on Java 22. That buys us some time on the Gradle side of things. |
Steps to reproduce:
<java.version>21</java.version>
to<java.version>22</java.version>
mvn clean verify
Results with:
This is because spring-boot-maven-plugin:3.2.3 uses old ASM version 9.5. Easily to see using
mvn dependency:resolve-plugins
:The text was updated successfully, but these errors were encountered: