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

chore: upgrade to Spring Boot 3 #2

Merged
merged 2 commits into from
Mar 14, 2024
Merged

chore: upgrade to Spring Boot 3 #2

merged 2 commits into from
Mar 14, 2024

Conversation

svandenakker
Copy link
Member

Spring Boot 3 made some changes to the way a library, such as this one,
notifies Spring Boot that it wants to be autoconfigured.

Details of this change are in the release notes of version 2.7.

With this commit, a new versioning system for this package is proposed:
<Spring Boot version>-<tradition semantic versioning>. For example,
3-1.0.2. Why? The problem with only semantic versioning and
following Spring releases (especially those with breaking changes) is,
that it becomes unclear when to update to a new major version. Should we
do it when this library introduces a breaking change? Or when Spring
Boot does? To solve this, the version now consists of a leading digit,
indicating the Spring Boot version that this version works with,
followed by a semantic version of the library itself.

So, we now have 2-1.0.2, working with Spring Boot 2, alongside
3-1.0.2, which works with Spring Boot 3. When a breaking change is
made to this library, we would signal that by bumping the versions to
2-2.0.0 and 3-2.0.0, respectively.

Spring Boot 3 made some changes to the way a library, such as this one,
notifies Spring Boot that it wants to be autoconfigured.

[Details of this change are in the release notes of version 2.7][1].

With this commit, a new versioning system for this package is proposed:
`<Spring Boot version>-<tradition semantic versioning>`. For example,
`3-1.0.2`. Why? The problem with only semantic versioning _and_
following Spring releases (especially those with breaking changes) is,
that it becomes unclear when to update to a new major version. Should we
do it when this library introduces a breaking change? Or when Spring
Boot does? To solve this, the version now consists of a leading digit,
indicating the Spring Boot version that this version works with,
followed by a semantic version of the library itself.

So, we now have `2-1.0.2`, working with Spring Boot 2, alongside
`3-1.0.2`, which works with Spring Boot 3. When a breaking change is
made to this library, we would signal that by bumping the versions to
`2-2.0.0` and `3-2.0.0`, respectively.

[1]: <https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-2.7-Release-Notes#changes-to-auto-configuration>
@svandenakker svandenakker merged commit 29c6947 into bolcom:master Mar 14, 2024
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant