You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The action/recipe must run before the Spring Boot version gets updated to 3.x.
The version for the ehcache dependency must explicitly set to the version managed by Boot 3. Additionally a classifier jakarta must be added.
After upgrading the Boot version to 3 the version of the ehcache dependency can/should be removed again.
Report
### Support for EhCache 3
Support for EhCache 3 is provided in a separate artifact. To use it in your application, make sure to add the dependency with the `jakarta` classifier.
The text was updated successfully, but these errors were encountered:
@aboyko thanks for pointing this out! That should do it for what I understand.
@sanagaraj-pivotalorg.openrewrite.java.spring.boot3.MavenPomUpgrade is not part of boot-2.7-3.0-dependency-version-update.yaml yet.
The Rewrite recipe MavenPomUpgrade does more than just dealing with the ehcache dependency.
IIRC adding a repository was problematic when repos already existed in pom.xml, right?
I'd say it's a good idea to produce warnings in the report (precondition-check) for Spring Boot modules that have an explicit version set instead and thus are not being managed by Boot. This could become a general "best practices" check/recipe later. So instead of just upgrading everything to 3.0.0 as in UpgradeDependencyVersion I'd propose to provide a finder (checking for versions of dependencies that are managed by Spring Boot) and the recipe
- org.openrewrite.maven.ChangeDependencyClassifier:
groupId: org.ehcache
artifactId: ehcache
newClassifier: jakarta
https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-3.0.0-M2-Release-Notes#reinstated-support-for-ehcache-3
What needs to be done
Finder
check if application is using EhCache 3
Recipe
Also see
The action/recipe must run before the Spring Boot version gets updated to 3.x.
The version for the ehcache dependency must explicitly set to the version managed by Boot 3. Additionally a classifier
jakarta
must be added.After upgrading the Boot version to 3 the version of the
ehcache
dependency can/should be removed again.Report
The text was updated successfully, but these errors were encountered: