Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/main/resources/META-INF/rewrite/devcenter-starter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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) {
Expand All @@ -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) {
Expand Down
8 changes: 4 additions & 4 deletions src/test/resources/UpgradesAndMigrations-Default.csv
Original file line number Diff line number Diff line change
@@ -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
Loading