diff --git a/eclipse-language-servers/org.springframework.tooling.boot.ls/src/org/springframework/tooling/boot/ls/prefs/PrefsInitializer.java b/eclipse-language-servers/org.springframework.tooling.boot.ls/src/org/springframework/tooling/boot/ls/prefs/PrefsInitializer.java index de1fc92920..aef527befa 100644 --- a/eclipse-language-servers/org.springframework.tooling.boot.ls/src/org/springframework/tooling/boot/ls/prefs/PrefsInitializer.java +++ b/eclipse-language-servers/org.springframework.tooling.boot.ls/src/org/springframework/tooling/boot/ls/prefs/PrefsInitializer.java @@ -54,7 +54,7 @@ public void initializeDefaultPreferences() { "org.openrewrite.java.testing.junit5.JUnit4to5Migration", "org.openrewrite.java.spring.boot2.UpgradeSpringBoot_2_7", "org.openrewrite.java.spring.boot3.UpgradeSpringBoot_3_3", - "org.openrewrite.java.spring.boot3.UpgradeSpringBoot_3_4", + "org.springframework.ide.vscode.rewrite.boot3.UpgradeSpringBoot_3_4", "org.rewrite.java.security.*", "org.springframework.rewrite.test.*", "rewrite.test.*" diff --git a/headless-services/commons/commons-rewrite/src/main/resources/META-INF/rewrite/UpgradeSpringBoot_3_4.yml b/headless-services/commons/commons-rewrite/src/main/resources/META-INF/rewrite/UpgradeSpringBoot_3_4.yml new file mode 100644 index 0000000000..969ec5a543 --- /dev/null +++ b/headless-services/commons/commons-rewrite/src/main/resources/META-INF/rewrite/UpgradeSpringBoot_3_4.yml @@ -0,0 +1,50 @@ +# +# Copyright 2024 the original author or authors. +#

+# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +#

+# https://www.apache.org/licenses/LICENSE-2.0 +#

+# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +--- +type: specs.openrewrite.org/v1beta/recipe +name: org.springframework.ide.vscode.rewrite.boot3.UpgradeSpringBoot_3_4 +displayName: Migrate to Spring Boot 3.4 +description: >- + Migrate applications to the latest Spring Boot 3.4 release. This recipe will modify an + application's build files and migrate configuration settings that have + changes between versions. +tags: + - spring + - boot +recipeList: + - org.openrewrite.java.spring.boot3.UpgradeSpringBoot_3_3 + - org.openrewrite.java.spring.boot3.SpringBootProperties_3_4 + - org.openrewrite.java.dependencies.UpgradeDependencyVersion: + groupId: org.springframework.boot + artifactId: "*" + newVersion: 3.4.x + overrideManagedVersion: false + - org.openrewrite.maven.UpgradePluginVersion: + groupId: org.springframework.boot + artifactId: spring-boot-maven-plugin + newVersion: 3.4.x + - org.openrewrite.java.dependencies.UpgradeDependencyVersion: + groupId: org.springframework + artifactId: "*" + newVersion: 6.2.x + - org.openrewrite.maven.UpgradeParentVersion: + groupId: org.springframework.boot + artifactId: spring-boot-starter-parent + newVersion: 3.4.x + - org.openrewrite.gradle.plugins.UpgradePluginVersion: + pluginIdPattern: org.springframework.boot + newVersion: 3.4.x + diff --git a/headless-services/spring-boot-language-server/src/main/java/org/springframework/ide/vscode/boot/java/rewrite/SpringBootUpgrade.java b/headless-services/spring-boot-language-server/src/main/java/org/springframework/ide/vscode/boot/java/rewrite/SpringBootUpgrade.java index 0be123c77c..a97f570d6e 100644 --- a/headless-services/spring-boot-language-server/src/main/java/org/springframework/ide/vscode/boot/java/rewrite/SpringBootUpgrade.java +++ b/headless-services/spring-boot-language-server/src/main/java/org/springframework/ide/vscode/boot/java/rewrite/SpringBootUpgrade.java @@ -51,7 +51,7 @@ public class SpringBootUpgrade { versionsToRecipeId.put("3.1", "org.openrewrite.java.spring.boot3.UpgradeSpringBoot_3_1"); versionsToRecipeId.put("3.2", "org.openrewrite.java.spring.boot3.UpgradeSpringBoot_3_2"); versionsToRecipeId.put("3.3", "org.openrewrite.java.spring.boot3.UpgradeSpringBoot_3_3"); - versionsToRecipeId.put("3.4", "org.openrewrite.java.spring.boot3.UpgradeSpringBoot_3_4"); + versionsToRecipeId.put("3.4", "org.springframework.ide.vscode.rewrite.boot3.UpgradeSpringBoot_3_4"); } public SpringBootUpgrade(SimpleLanguageServer server, RewriteRecipeRepository recipeRepo, JavaProjectFinder projectFinder) { diff --git a/vscode-extensions/vscode-spring-boot/package.json b/vscode-extensions/vscode-spring-boot/package.json index a076336372..b36c1517e9 100644 --- a/vscode-extensions/vscode-spring-boot/package.json +++ b/vscode-extensions/vscode-spring-boot/package.json @@ -443,7 +443,7 @@ "org.openrewrite.java.testing.junit5.JUnit4to5Migration", "org.openrewrite.java.spring.boot2.UpgradeSpringBoot_2_7", "org.openrewrite.java.spring.boot3.UpgradeSpringBoot_3_3", - "org.openrewrite.java.spring.boot3.UpgradeSpringBoot_3_4", + "org.springframework.ide.vscode.rewrite.boot3.UpgradeSpringBoot_3_4", "org.rewrite.java.security.*", "org.springframework.rewrite.test.*", "rewrite.test.*"