File tree Expand file tree Collapse file tree 3 files changed +38
-1
lines changed
applications/spring-shell/src/test
java/org/springframework/sbm
resources/testcode/boot-migration-27-30
components/sbm-recipes-boot-upgrade/src/main/resources/recipes Expand file tree Collapse file tree 3 files changed +38
-1
lines changed Original file line number Diff line number Diff line change @@ -56,11 +56,19 @@ void migrateSimpleApplication() {
56
56
verifyAutoConfigurationIsRefactored ();
57
57
verifyEhCacheVersionIsUpgraded ();
58
58
verifyJohnzonCoreDependencyIsUpgraded ();
59
+ verifyWireMockDependency ();
59
60
verifySpringCloudDependency ();
61
+ }
62
+
63
+ private void verifyWireMockDependency () {
64
+ Optional <Dependency > wireMock =
65
+ getDependencyByArtifactId ("wiremock-jre8-standalone" );
66
+
67
+ assertThat (wireMock ).isPresent ();
68
+ assertThat (wireMock .get ().getVersion ()).isEqualTo ("2.34.0" );
60
69
}
61
70
62
71
private void verifySpringCloudDependency () {
63
-
64
72
assertThat (getProperty ("spring-cloud.version" )).isEqualTo ("2022.0.0-M4" );
65
73
}
66
74
Original file line number Diff line number Diff line change 36
36
<artifactId >h2</artifactId >
37
37
<scope >runtime</scope >
38
38
</dependency >
39
+ <dependency >
40
+ <groupId >com.github.tomakehurst</groupId >
41
+ <artifactId >wiremock-jre8</artifactId >
42
+ <version >2.26.3</version >
43
+ </dependency >
39
44
<dependency >
40
45
<groupId >io.projectreactor</groupId >
41
46
<artifactId >reactor-core</artifactId >
Original file line number Diff line number Diff line change 88
88
artifactId: spring-boot-dependencies
89
89
newVersion: 3.0.0-M3
90
90
91
+ - type : org.springframework.sbm.engine.recipe.OpenRewriteDeclarativeRecipeAdapter
92
+ condition :
93
+ type : org.springframework.sbm.boot.common.conditions.IsSpringBootProject
94
+ versionPattern : " 2\\ .7\\ ..*|3\\ .0\\ ..*"
95
+ description : Miscellaneous migration that are required by Spring 3
96
+ openRewriteRecipe : |-
97
+ type: specs.openrewrite.org/v1beta/recipe
98
+ name: org.openrewrite.java.spring.boot3.data.MiscSpring30
99
+ displayName: Misc Upgrades to support SpringBoot 3.0
100
+ description: 'Misc Upgrades to support SpringBoot 3.0'
101
+ recipeList:
102
+ - org.openrewrite.maven.ChangeDependencyGroupIdAndArtifactId:
103
+ oldGroupId: com.github.tomakehurst
104
+ oldArtifactId: wiremock-jre8
105
+ newGroupId: com.github.tomakehurst
106
+ newArtifactId: wiremock-jre8-standalone
107
+ newVersion: 2.34.0
108
+ - org.openrewrite.maven.ChangeManagedDependencyGroupIdAndArtifactId:
109
+ oldGroupId: com.github.tomakehurst
110
+ oldArtifactId: wiremock-jre8
111
+ newGroupId: com.github.tomakehurst
112
+ newArtifactId: wiremock-jre8-standalone
113
+ newVersion: 2.34.0
114
+
91
115
- type : org.springframework.sbm.build.migration.actions.SetProperty
92
116
propertyName : " java.version"
93
117
propertyValue : " 17"
You can’t perform that action at this time.
0 commit comments