Skip to content

Commit c84e07b

Browse files
committed
Moved "jmx endpoint exposure" migration recipe to the right recipe yaml
1 parent 091c890 commit c84e07b

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

applications/spring-shell/src/test/java/org/springframework/sbm/BootUpgrade_27_30_MultiModule_IntegrationTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,8 @@ private void verifyPropertyConfigurationUpdate() {
154154
"spring.datasource.username=sa\n" +
155155
"spring.datasource.password=password\n" +
156156
"spring.jpa.database-platform=org.hibernate.dialect.H2Dialect\n" +
157-
"logging.pattern.dateformat=yyyy-MM-dd HH:mm:ss.SSS\n");
157+
"logging.pattern.dateformat=yyyy-MM-dd HH:mm:ss.SSS\n" +
158+
"management.endpoints.jmx.exposure.include=*\n");
158159
}
159160

160161
private void verifyEhCacheVersionIsUpgraded() {

components/sbm-recipes-boot-upgrade/src/main/resources/recipes/boot-2.7-3.0-dependency-version-update.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -665,10 +665,15 @@
665665
condition:
666666
type: org.springframework.sbm.boot.upgrade_27_30.conditions.LoggingDateFormatCondition
667667
addDefaultPropertiesFileToTopModules: true
668-
- type: org.springframework.sbm.boot.upgrade_27_30.actions.Boot_27_30_AddLoggingDateFormat
669668

669+
- type: org.springframework.sbm.boot.upgrade_27_30.actions.Boot_27_30_AddLoggingDateFormat
670670
description: "Sets logging date format to yyyy-MM-dd HH:mm:ss.SSS"
671671
condition:
672672
type: org.springframework.sbm.boot.upgrade_27_30.conditions.LoggingDateFormatCondition
673673

674+
- type: org.springframework.sbm.boot.upgrade_27_30.actions.Boot_27_30_JmxEndpointExposureAction
675+
description: "Sets JMX endpoint exposure include to *"
676+
condition:
677+
type: org.springframework.sbm.boot.upgrade_27_30.conditions.JmxEndpointExposureCondition
678+
674679

components/sbm-recipes-boot-upgrade/src/main/resources/recipes/boot-2.7-3.0-upgrade-report.yaml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,4 @@
1616
- type: org.springframework.sbm.boot.upgrade_27_30.actions.Boot_27_30_AddLoggingDateFormat
1717
description: "Sets logging date format to yyyy-MM-dd HH:mm:ss.SSS"
1818
condition:
19-
type: org.springframework.sbm.boot.upgrade_27_30.conditions.LoggingDateFormatCondition
20-
- type: org.springframework.sbm.boot.upgrade_27_30.actions.Boot_27_30_JmxEndpointExposureAction
21-
description: "Sets JMX endpoint exposure include to *"
22-
condition:
23-
type: org.springframework.sbm.boot.upgrade_27_30.conditions.JmxEndpointExposureCondition
19+
type: org.springframework.sbm.boot.upgrade_27_30.conditions.LoggingDateFormatCondition

0 commit comments

Comments
 (0)