diff --git a/src/main/resources/META-INF/rewrite/devcenter-starter.yml b/src/main/resources/META-INF/rewrite/devcenter-starter.yml index 460c0ef..13fe700 100644 --- a/src/main/resources/META-INF/rewrite/devcenter-starter.yml +++ b/src/main/resources/META-INF/rewrite/devcenter-starter.yml @@ -25,11 +25,11 @@ description: >- For more information on how to customize your DevCenter configuration, see the [DevCenter documentation](https://docs.moderne.io/administrator-documentation/moderne-platform/how-to-guides/recipe-based-devcenter-beta/). recipeList: - io.moderne.devcenter.LibraryUpgrade: - cardName: Move to Spring Boot 4.0 + cardName: Move to Spring Boot 4.1 groupIdPattern: org.springframework.boot artifactIdPattern: '*' - version: 4.0.0 - upgradeRecipe: io.moderne.java.spring.boot4.UpgradeSpringBoot_4_0 + version: 4.1.0 + upgradeRecipe: io.moderne.java.spring.boot4.UpgradeSpringBoot_4_1 - io.moderne.devcenter.JavaVersionUpgrade: majorVersion: 25 upgradeRecipe: org.openrewrite.java.migrate.UpgradeToJava25 diff --git a/src/test/java/io/moderne/devcenter/result/DevCenterResultReducerTest.java b/src/test/java/io/moderne/devcenter/result/DevCenterResultReducerTest.java index 6ea4053..83504df 100644 --- a/src/test/java/io/moderne/devcenter/result/DevCenterResultReducerTest.java +++ b/src/test/java/io/moderne/devcenter/result/DevCenterResultReducerTest.java @@ -81,14 +81,14 @@ void duplicateRowsForOneRepoCountAsOneRepo() { root, new StringReader(""" repositoryOrigin,repositoryPath,repositoryBranch,card,ordinal,value,currentMinimumVersion - github.com,finos/spring-bot,spring-bot-master,Move to Spring Boot 4.0,0,Major,3.5.0 - github.com,finos/spring-bot,spring-bot-master,Move to Spring Boot 4.0,0,Major,3.4.0 + github.com,finos/spring-bot,spring-bot-master,Move to Spring Boot 4.1,0,Major,3.5.0 + github.com,finos/spring-bot,spring-bot-master,Move to Spring Boot 4.1,0,Major,3.4.0 """), new StringReader("") ); reducer.reduce(root).forEach( - devCenter.getCard("Move to Spring Boot 4.0"), + devCenter.getCard("Move to Spring Boot 4.1"), (measure, count) -> { assertThat(measure).isEqualTo(SemverMeasure.Major); assertThat(count).isEqualTo(1); @@ -107,7 +107,7 @@ void emptySecurity() { assertThat(reducer.reduce(root).getResultsByCard().keySet()) .map(DevCenter.Card::getName) - .containsExactly("Move to Spring Boot 4.0"); + .containsExactly("Move to Spring Boot 4.1"); } private void hasSecurityResults(DevCenterResult result) { @@ -118,7 +118,7 @@ private void hasSecurityResults(DevCenterResult result) { } private void hasSpringBoot35Results(DevCenterResult result) { - result.forEach(devCenter.getCard("Move to Spring Boot 4.0"), (measure, count) -> + result.forEach(devCenter.getCard("Move to Spring Boot 4.1"), (measure, count) -> assertThat(count) .describedAs(measure.getName()) .isEqualTo((int) switch (measure) { diff --git a/src/test/resources/UpgradesAndMigrations-Default.csv b/src/test/resources/UpgradesAndMigrations-Default.csv index eb9bc33..c0420f1 100644 --- a/src/test/resources/UpgradesAndMigrations-Default.csv +++ b/src/test/resources/UpgradesAndMigrations-Default.csv @@ -1,5 +1,5 @@ repositoryOrigin,repositoryPath,repositoryBranch,scmType,repositoryLink,card,ordinal,value,currentMinimumVersion -github.com,finos/spring-bot,spring-bot-master,GITHUB,"https://github.com/finos/spring-bot/blob/spring-bot-master","Move to Spring Boot 4.0",1,Minor,3.4.5 -github.com,finos/symphony-bdk-java,main,GITHUB,"https://github.com/finos/symphony-bdk-java/blob/main","Move to Spring Boot 4.0",1,Minor,3.3.7 -github.com,finos/symphony-wdk,master,GITHUB,"https://github.com/finos/symphony-wdk/blob/master","Move to Spring Boot 4.0",1,Minor,3.2.2 -github.com,"spring-projects/spring-petclinic",main,GITHUB,"https://github.com/spring-projects/spring-petclinic/blob/main","Move to Spring Boot 4.0",3,Completed,3.5.0 +github.com,finos/spring-bot,spring-bot-master,GITHUB,"https://github.com/finos/spring-bot/blob/spring-bot-master","Move to Spring Boot 4.1",1,Minor,3.4.5 +github.com,finos/symphony-bdk-java,main,GITHUB,"https://github.com/finos/symphony-bdk-java/blob/main","Move to Spring Boot 4.1",1,Minor,3.3.7 +github.com,finos/symphony-wdk,master,GITHUB,"https://github.com/finos/symphony-wdk/blob/master","Move to Spring Boot 4.1",1,Minor,3.2.2 +github.com,"spring-projects/spring-petclinic",main,GITHUB,"https://github.com/spring-projects/spring-petclinic/blob/main","Move to Spring Boot 4.1",3,Completed,3.5.0