1616package org .openrewrite .maven ;
1717
1818import org .junit .jupiter .api .Test ;
19+ import org .junit .jupiter .api .condition .DisabledIfEnvironmentVariable ;
1920import org .openrewrite .DocumentExample ;
2021import org .openrewrite .test .RewriteTest ;
2122
@@ -305,7 +306,9 @@ void noIdMatch1SameSnapshots() {
305306 }
306307
307308 @ Test
308- void updateToSpringBootSnapshot () {
309+ @ DisabledIfEnvironmentVariable (named = "CI" , matches = "true" ,
310+ disabledReason = "Artifactory mirror does not proxy https://repo.spring.io/snapshot" )
311+ void updateToSpringBoot30Snapshot () {
309312 rewriteRun (
310313 spec -> spec .recipes (
311314 new AddRepository ("boot-snapshots" , "https://repo.spring.io/snapshot" , null , null ,
@@ -314,7 +317,7 @@ void updateToSpringBootSnapshot() {
314317 new UpgradeParentVersion (
315318 "org.springframework.boot" ,
316319 "spring-boot-starter-parent" ,
317- "4 .0.0-SNAPSHOT" ,
320+ "3 .0.0-SNAPSHOT" ,
318321 null ,
319322 null )
320323 ),
@@ -324,7 +327,7 @@ void updateToSpringBootSnapshot() {
324327 <parent>
325328 <groupId>org.springframework.boot</groupId>
326329 <artifactId>spring-boot-starter-parent</artifactId>
327- <version>3.4.0 </version>
330+ <version>2.7.3 </version>
328331 </parent>
329332 <groupId>com.mycompany.app</groupId>
330333 <artifactId>my-app</artifactId>
@@ -336,7 +339,7 @@ void updateToSpringBootSnapshot() {
336339 <parent>
337340 <groupId>org.springframework.boot</groupId>
338341 <artifactId>spring-boot-starter-parent</artifactId>
339- <version>4 .0.0-SNAPSHOT</version>
342+ <version>3 .0.0-SNAPSHOT</version>
340343 </parent>
341344 <groupId>com.mycompany.app</groupId>
342345 <artifactId>my-app</artifactId>
0 commit comments