Skip to content
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 3 support #1840

Closed
brunomace opened this issue Oct 7, 2022 · 3 comments
Closed

Spring Boot 3 support #1840

brunomace opened this issue Oct 7, 2022 · 3 comments
Labels

Comments

@brunomace
Copy link

Hello,
The actual Spring Boot autoconfiguration registration method will not be supported anymore in Spring Boot 3.

The current milestone M5 have alreday removed the support of the "spring.factories" file in flavor of the "META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports" file.

This new method have been introduced in Spring Boot 2.7.

It's a blocker since the Picocli Spring Boot Starter can't be used with the upcoming release of Spring Boot 3 (and current milestone) .

See comments here;
spring-projects/spring-boot#32566
https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-3.0.0-M5-Release-Notes#auto-configuration-registration

@brunomace
Copy link
Author

Hello,
Adding a new file "/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports" with this content works:
picocli.spring.boot.autoconfigure.PicocliAutoConfiguration

@remkop
Copy link
Owner

remkop commented Oct 16, 2022

Hi @brunomace I believe this was completed in #1778

@remkop remkop added the status: duplicate 👨🏻‍🤝‍👨🏻 A duplicate of another issue label Oct 16, 2022
@brunomace
Copy link
Author

Duplicate

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

No branches or pull requests

2 participants