-
Notifications
You must be signed in to change notification settings - Fork 15
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
feat: update spring-boot to 3.x #664
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This was referenced Apr 4, 2023
LukasLohoff
force-pushed
the
spring-boot-update
branch
2 times, most recently
from
May 17, 2023 14:45
1510daf
to
6a555ac
Compare
This was referenced May 25, 2023
LukasLohoff
force-pushed
the
spring-boot-update
branch
from
June 13, 2023 13:11
6a555ac
to
83661e6
Compare
This was referenced Jul 18, 2023
LukasLohoff
force-pushed
the
spring-boot-update
branch
2 times, most recently
from
September 2, 2023 09:20
bd01d26
to
6351b66
Compare
LukasLohoff
changed the title
feat: update spring-boot to 3.0.x
feat: update spring-boot to 3.x
Sep 3, 2023
LukasLohoff
force-pushed
the
spring-boot-update
branch
2 times, most recently
from
September 4, 2023 09:41
d65b7ef
to
3eaf2fc
Compare
dnlkoch
approved these changes
Sep 4, 2023
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome @LukasLohoff!
ahennr
approved these changes
Sep 4, 2023
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work @LukasLohoff
BREAKING CHANGE: requires migration for spring / spring-security 6 and hibernate 6 updates Migration guide: - update java EE 8 dependencies to jakarta EE 9 (see https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-3.0-Migration-Guide#jakarta-ee) - update repositories - update `@QueryHints` annotations - e.g. `org.hibernate.annotations.QueryHints.CACHEABLE` -> `AvailableHints.HINT_CACHEABLE` - if you use custom data fetching methods, migration steps for hibernate 6 / 6.1 / 6.2 might be necessary - especially consider https://github.com/hibernate/hibernate-orm/blob/6.0/migration-guide.adoc#removals - for more information see the hibernate migration guides listed below - update your SecurityConfigs which extend `KeycloakWebSecurityConfig` or `SimpleWebSecurityConfig` - update your filter chain according to the the spring security migration guides below - replace `antMatchers` with `requestMatchers`, ignoringAntMatchers with ignoringRequestMatchers - update your rules for swagger (`/v3/api-docs`) if they're not already updated - update your `git-commit-id-plugin` configuration and check if the version set in shogun is overridden (for more information see terrestris#730)
Co-authored-by: Daniel Koch <[email protected]>
LukasLohoff
force-pushed
the
spring-boot-update
branch
from
September 5, 2023 10:10
16335f9
to
e189118
Compare
16 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
🚨 BREAKING CHANGE 🚨
Description
Updates spring boot to 3.1.x / spring to 6.1 and also updates related dependencies:
spring
5.x -> 6.1hibernate
5.x -> 6.2.7hibernate-types-52
->hypersistence-utils-hibernate-62
(see https://github.com/vladmihalcea/hypersistence-utils#migrating-to-version-3)springdoc-openapi
1.6.14 -> 2.2.0keycloak-admin-client
19.0.3 -> 22.0.1git-commit-id-plugin
-> 6.0.0HttpClient
in HttpUtil (4 -> 5)@terrestris/devs Please review
Migration Guide
application.properties
orapplication.yml
according to the changes made in this Pull Request@QueryHints
annotationsorg.hibernate.annotations.QueryHints.CACHEABLE
->AvailableHints.HINT_CACHEABLE
KeycloakWebSecurityConfig
orSimpleWebSecurityConfig
.anyRequest().authenticated()
to the end of your filter chain, as this is no longer the default/v3/api-docs
) if they're not already updatedgit-commit-id-plugin
configuration and check if the version set in shogun is overridden (for more information see Fix build time for docker images #730)Useful resources
Todos:
jakarta-mail.version
is not foundSpringPhysicalNamingStrategy
is neededRelated issues or pull requests
Pull request type
Do you introduce a breaking change?
Checklist
Apache Licence Version 2.0.
mvn test
locally).