File tree Expand file tree Collapse file tree 5 files changed +59
-0
lines changed
applications/spring-shell/src/test
java/org/springframework/sbm
boot-migration-27-30/src/main/resources
boot-migration-27-30-multi-module/spring-app/src/main/resources
components/sbm-recipes-boot-upgrade/src/main/resources/recipes Expand file tree Collapse file tree 5 files changed +59
-0
lines changed Original file line number Diff line number Diff line change @@ -183,6 +183,17 @@ private void verifyYamlConfigurationUpdate() {
183
183
" driverClassName: org.h2.Driver\n " +
184
184
" jpa:\n " +
185
185
" database-platform: org.hibernate.dialect.H2Dialect\n " +
186
+ " cassandra:\n " +
187
+ " keyspaceName: testKeySpace\n " +
188
+ " contactPoints: localhost\n " +
189
+ " port: 9042\n " +
190
+ " username: testusername\n " +
191
+ " schemaAction: NONE\n " +
192
+ " request:\n " +
193
+ " timeout: 10s\n " +
194
+ " connection:\n " +
195
+ " connectTimeout: 10s\n " +
196
+ " initQueryTimeout: 10s\n " +
186
197
" elasticsearch:\n " +
187
198
" connection-timeout: '1'\n " +
188
199
" password: testpassword\n " +
Original file line number Diff line number Diff line change @@ -87,6 +87,17 @@ private void verifyYamlConfigurationUpdate() {
87
87
" restclient.sniffer.delay-after-failure: '3'\n " +
88
88
" restclient.sniffer.interval: '4'\n " +
89
89
" username: username\n " +
90
+ " cassandra:\n " +
91
+ " keyspaceName: testKeySpace\n " +
92
+ " contactPoints: localhost\n " +
93
+ " port: 9042\n " +
94
+ " username: testusername\n " +
95
+ " schemaAction: NONE\n " +
96
+ " request:\n " +
97
+ " timeout: 10s\n " +
98
+ " connection:\n " +
99
+ " connectTimeout: 10s\n " +
100
+ " initQueryTimeout: 10s\n " +
90
101
" security:\n " +
91
102
" saml2:\n " +
92
103
" relyingparty:\n " +
Original file line number Diff line number Diff line change @@ -85,6 +85,17 @@ spring:
85
85
socket-timeout : ' 100'
86
86
max-in-memory-size : ' 122'
87
87
username : testUser
88
+ cassandra :
89
+ keyspaceName : testKeySpace
90
+ contactPoints : localhost
91
+ port : 9042
92
+ username : testusername
93
+ schemaAction : NONE
94
+ request :
95
+ timeout : 10s
96
+ connection :
97
+ connectTimeout : 10s
98
+ initQueryTimeout : 10s
88
99
h2 :
89
100
console :
90
101
path : " /tmp"
Original file line number Diff line number Diff line change @@ -85,6 +85,17 @@ spring:
85
85
socket-timeout : ' 100'
86
86
max-in-memory-size : ' 122'
87
87
username : testUser
88
+ cassandra :
89
+ keyspaceName : testKeySpace
90
+ contactPoints : localhost
91
+ port : 9042
92
+ username : testusername
93
+ schemaAction : NONE
94
+ request :
95
+ timeout : 10s
96
+ connection :
97
+ connectTimeout : 10s
98
+ initQueryTimeout : 10s
88
99
h2 :
89
100
console :
90
101
path : " /tmp"
Original file line number Diff line number Diff line change 107
107
recipeList:
108
108
- org.springframework.sbm.boot.upgrade_27_30.SamlRelyingPartyPropertyApplicationPropertiesMove
109
109
110
+ - type : org.springframework.sbm.engine.recipe.OpenRewriteDeclarativeRecipeAdapter
111
+ condition :
112
+ type : org.springframework.sbm.boot.common.conditions.IsSpringBootProject
113
+ versionPattern : " 3\\ .0\\ ..*"
114
+ description : Migrate Cassandra configuration to Spring Boot 3.0 in yaml format
115
+ openRewriteRecipe : |-
116
+ type: specs.openrewrite.org/v1beta/recipe
117
+ name: org.openrewrite.java.spring.boot2.SpringBootPropertiesManual_2_7
118
+ displayName: Migrate Cassandra configuration to Spring Boot 3.0 in yaml format
119
+ description: Renames spring.data.cassandra.(any) to spring.cassandra.(any)
120
+ recipeList:
121
+ - org.openrewrite.yaml.ChangeKey:
122
+ oldKeyPath: $.spring.data.cassandra
123
+ newKey:
124
+
110
125
- type : org.springframework.sbm.engine.recipe.OpenRewriteDeclarativeRecipeAdapter
111
126
condition :
112
127
type : org.springframework.sbm.boot.common.conditions.IsSpringBootProject
You can’t perform that action at this time.
0 commit comments