Skip to content

Commit

Permalink
Attempt not to run boot upgrade 1.x -> 2.x for projects on 2.x already (
Browse files Browse the repository at this point in the history
  • Loading branch information
BoykoAlex authored Jun 21, 2024
1 parent 24af0a4 commit 1687fe9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 13 deletions.
5 changes: 5 additions & 0 deletions src/main/resources/META-INF/rewrite/spring-boot-20.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ description: >
tags:
- spring
- boot
preconditions:
- org.openrewrite.java.dependencies.DependencyInsight:
groupIdPattern: org.springframework
artifactIdPattern: spring-core
version: 4.x
recipeList:
# Upgrade 2.0.x from 1.x
- org.openrewrite.java.dependencies.UpgradeDependencyVersion:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,21 +95,8 @@ void xmlBindMissing() {
<properties>
<java.version>17</java.version>
</properties>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>jakarta.validation</groupId>
<artifactId>jakarta.validation-api</artifactId>
<version>3.1.0</version>
</dependency>
</dependencies>
</dependencyManagement>
<dependencies>
<dependency>
<groupId>jakarta.validation</groupId>
<artifactId>jakarta.validation-api</artifactId>
</dependency>
<dependency>
<groupId>jakarta.xml.bind</groupId>
<artifactId>jakarta.xml.bind-api</artifactId>
Expand Down

0 comments on commit 1687fe9

Please sign in to comment.