-
Notifications
You must be signed in to change notification settings - Fork 65
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
Provide compatibility with Spring Boot 3 #196
Comments
Thank you @klu2 for having reported and analyzed this problem! I agree with your analysis. Would you be interested in creating a PR to fix the problem? |
…e with Spring Boot 3
@klu2 I have deployed a snapshot version (1.1.1-SNAPSHOT) with the fix. You may want to check that the SQL annotations now work with Spring Boot 3. |
hi @jeanbisutti thanks - I have tested that already in another library that we are publishing (https://github.com/cloudflightio/cloudflight-platform-spring) where I temporarily add that file to our library which loads quickperf transitively (https://github.com/cloudflightio/cloudflight-platform-spring/blob/master/platform-spring-test-bom/platform-spring-test-jpa/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports) and that works perfectly fine with Spring Boot 3, we are running that already. As soon as you've published a release, I will update the version in our library and remove that file again from our code-base. |
@jeanbisutti when do you plan to release 1.1.1? |
@maciejwalkowiak I will try my best to do a release in March. Waiting for the release you can apply this workaround for this issue. |
Thanks @jeanbisutti! If there's anything I can help regarding migration to Spring Boot 3 let me know. |
any updates on this @jeanbisutti ? |
@NaitYoussef I have been pretty busy these last months... Thank you for the reminder. I will try to a a release soon. For this issue, you can apply this workaround. |
Workaround: #196 (comment) |
@jeanbisutti I don't want to nag you periodically but it would be great to release 1.1.1. Is there anything I can do to help? I'd like to avoid forking this project but maybe it is a right thing to do? |
Hey @maciejwalkowiak If you want to help, you can document #175. The documentation is done in the wiki: https://github.com/quick-perf/doc/wiki/QuickPerf Just fork the wiki and do the modifications on your copy. Thanks. |
Hi @jeanbisutti , Is there any plan to continuing this wonderful project? |
Hi @rajadilipkolli I am short in time. Any help would be appreciated. |
Description
The library currently does not work with Spring Boot 3. The problem is that already in Spring Boot 2.7 there was a change how to load AutoConfiguration, see https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-2.7-Release-Notes#building-jars-with-maven-shade-plugin-and-gradle-shadow-plugin
Implementation ideas
What we need is a file called
org.springframework.boot.autoconfigure.AutoConfiguration.imports
insidesrc/main/resources/META-INF/spring
with the following content:I see 2 options:
drawback: additional module, code duplication with springboot2
org.springframework.boot.autoconfigure.AutoConfiguration.imports
file theredrawback: will require at least Spring Boot 2.7
but if you leave the old file as well (
spring.factories
), all versions (also Spring Boot 3.0) would work, so I'd prefer that optionThe text was updated successfully, but these errors were encountered: