Skip to content
This repository has been archived by the owner on Feb 23, 2023. It is now read-only.

Fix Spring Boot 2.7.6+ compatiblity #1740

Closed
fbus opened this issue Dec 21, 2022 · 0 comments
Closed

Fix Spring Boot 2.7.6+ compatiblity #1740

fbus opened this issue Dec 21, 2022 · 0 comments
Assignees
Labels
type: dependency-upgrade A dependency upgrade
Milestone

Comments

@fbus
Copy link

fbus commented Dec 21, 2022

As far as I can tell, this commit broke compatibility with spring native :
spring-projects/spring-boot@463a614

It was working fine with 2.7.5. Now with 2.7.6 I get errors like

[INFO] --- spring-aot-maven-plugin:0.12.1:generate (generate) @ integrationtest-artifactId-api ---
Exception in thread "main" java.lang.NoClassDefFoundError: org/springframework/boot/ApplicationServletEnvironment
        at org.springframework.boot.AotApplicationContextFactory.getOrCreateEnvironment(AotApplicationContextFactory.java:80)
[INFO] --- spring-aot-maven-plugin:0.12.1:generate (generate) @ integrationtest-artifactId-api ---
Exception in thread "main" java.lang.NoSuchMethodError: 'org.springframework.core.env.StandardEnvironment org.springframework.boot.EnvironmentConverter.convertEnvironmentIfNecessary(org.springframework.core.env.ConfigurableEnvironment, java.lang.Class)'
        at org.springframework.boot.AotApplicationContextFactory.loadEnvironment(AotApplicationContextFactory.java:68)
        at org.springframework.boot.AotApplicationContextFactory.createApplicationContext(AotApplicationContextFactory.java:52)

I understand that spring native 0.12 is not supported since spring boot 3 is released. I won't make the jump to 3.0 until 6 months at least in my company so... If possible, a 0.12.2 release would be appreciated :D
Merci !

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged or decided on label Dec 21, 2022
@sdeleuze sdeleuze self-assigned this Jan 2, 2023
@sdeleuze sdeleuze added this to the 0.12.2 milestone Jan 2, 2023
@sdeleuze sdeleuze added type: dependency-upgrade A dependency upgrade and removed status: waiting-for-triage An issue we've not yet triaged or decided on labels Jan 2, 2023
@sdeleuze sdeleuze changed the title Spring native is broken since 2.7.6 Fix Spring Boot 2.7.6+ compatiblity Jan 2, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: dependency-upgrade A dependency upgrade
Development

No branches or pull requests

3 participants