Skip to content

Commit 9f378b7

Browse files
committed
feat: Add report section "Updated Phases for Graceful Shutdown"
1 parent 338ff96 commit 9f378b7

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

components/sbm-recipes-boot-upgrade/src/main/resources/recipes/27_30/report/sbu30-report.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -677,7 +677,7 @@
677677
condition:
678678
type: org.springframework.sbm.build.migration.conditions.AnyEffectiveDependencyExistMatchingRegex
679679
dependencies:
680-
- 'org\.springframework\:.*'
680+
- 'org\.springframework\.boot\:spring-boot\:.*'
681681

682682
change: |-
683683
The phases used by the `SmartLifecycle` implementations for graceful shutdown have been updated.
@@ -686,7 +686,7 @@
686686
687687
affected: |-
688688
Actually, we don't know if the scanned application is really affected by this change.
689-
But we found a dependency matching regex `org\.springframework\:.*`.
689+
But we found a dependency matching regex `org\.springframework\.boot\:spring-boot\:.*`.
690690
This indicates that the scanned application might be affected.
691691
remediation:
692692
description: |-

components/sbm-recipes-boot-upgrade/src/test/java/org/springframework/sbm/boot/upgrade_27_30/report/helper/UpdatedPhasesForGracefulShutdownReportSectionTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ void withSingleModuleApplicationShouldRender() {
2828
ProjectContext context = TestProjectContext
2929
.buildProjectContext()
3030
.withSpringBootParentOf("2.7.5")
31-
.withBuildFileHavingDependencies("org.springframework:spring-core:6.0.2")
31+
.withBuildFileHavingDependencies("org.springframework.boot:spring-boot:2.7.5")
3232
.build();
3333

3434
SpringBootUpgradeReportTestSupport.generatedSection("Updated Phases for Graceful Shutdown")
@@ -43,7 +43,7 @@ void withSingleModuleApplicationShouldRender() {
4343
4444
==== Why is the application affected
4545
Actually, we don't know if the scanned application is really affected by this change.
46-
But we found a dependency matching regex `org\\.springframework\\:.*`.
46+
But we found a dependency matching regex `org\\.springframework\\.boot\\:spring-boot\\:.*`.
4747
This indicates that the scanned application might be affected.
4848
4949
==== Remediation

0 commit comments

Comments
 (0)