Closed nmck257 closed 2 years ago
(revised with a test case to demonstrate)
@tkvangorder - actually, I think there might be two issues here:
ChangePropertyKey("spring.profiles", //...
should affect a yml line like spring.profiles.group.prod: proddb,prodmq,prodmetrics
Should I split off a separate issue (on rewrite
) for that second item? And in terms of a solution, do you think it's appropriate for ChangePropertyKey
to always behave with that dot-separation awareness, or should it be a configurable boolean?
Possible duplicate between this and #132
Closed by #212
org.openrewrite.java.spring.boot2.SpringBootProperties_2_4
contains the following change:...which works as intended w/ Spring's changes to profile-specific documents in 2.4.
Spring Boot 2.4 also introduces Profile Groups, with the following syntax:
This works fine in most cases, but the recipe above will unintentionally break usages of that new syntax if it's in a yml file with indented hierarchy:
Repos migrating into 2.4 for the first time will be fine, but existing post-2.4 repos who use this feature and receive this recipe will break (and given how UpgradeSpringBoot recipes are chained together, that's not unlikely to occur).