lbruun-net / Pre-Liquibase

Spring Boot add-on to Liquibase
Apache License 2.0
49 stars 9 forks source link

Autoconfiguration file for Spring Boot 2.7+ / Required by Spring Boot 3 #15

Closed candrews closed 2 years ago

candrews commented 2 years ago

Spring Boot 3 will not support org.springframework.boot.autoconfigure.EnableAutoConfiguration in spring.factories

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

candrews commented 2 years ago

I think this is all that's necessary for Spring Boot 3 compatibility.

If you could please release a new version once this PR has been merged, it would be very helpful for us trying out Spring Boot 3. :)

Thank you in advance!

lbruun commented 2 years ago

Thanks. Looking at it. Your PR is not removing the entry from the (now deprecated) spring.factories file which means it is now in both places. This is good in the sense that then Spring Boot 2.6 will still work, but I need to test if Spring folks have guarded themselves against double invocation in the situation where a class is mentioned in both places.

lbruun commented 2 years ago

@candrews :

I think this is all that's necessary for Spring Boot 3 compatibility.

He-he. Never that simple. For Spring Boot 3 a lot more was required. Should have guessed. :-) FYI: List of changes to accommodate Spring Boot 3: diff

I've released version 1.3.0-RC1 which supports Spring Boot 3. It is currently on a branch of its own. Please give this new version a spin.

Thanks for nudging me to update the project to Spring Boot 3.