diff --git a/build.gradle.kts b/build.gradle.kts index 81a5e8716e..de93a66843 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -27,6 +27,7 @@ dependencies { implementation("org.openrewrite.recipe:rewrite-github-actions:$rewriteVersion") implementation("org.openrewrite.recipe:rewrite-java-dependencies:$rewriteVersion") implementation("org.openrewrite.recipe:rewrite-static-analysis:$rewriteVersion") + implementation("org.openrewrite.recipe:rewrite-jenkins:$rewriteVersion") implementation("org.openrewrite:rewrite-templating:$rewriteVersion") runtimeOnly("org.openrewrite:rewrite-java-8") diff --git a/src/main/java/org/openrewrite/java/migrate/UpgradeJavaVersion.java b/src/main/java/org/openrewrite/java/migrate/UpgradeJavaVersion.java index eeae677aea..dc2f666182 100644 --- a/src/main/java/org/openrewrite/java/migrate/UpgradeJavaVersion.java +++ b/src/main/java/org/openrewrite/java/migrate/UpgradeJavaVersion.java @@ -58,6 +58,7 @@ public List getRecipeList() { return Arrays.asList( new UseMavenCompilerPluginReleaseConfiguration(version), new UpdateMavenProjectPropertyJavaVersion(version), + new org.openrewrite.jenkins.UpgradeJavaVersion(version, null), new UpdateJavaCompatibility(version, null, null, false, null) ); } diff --git a/src/test/java/org/openrewrite/java/migrate/UpgradeJavaVersionTest.java b/src/test/java/org/openrewrite/java/migrate/UpgradeJavaVersionTest.java index 3e79c56796..5d15a8f033 100644 --- a/src/test/java/org/openrewrite/java/migrate/UpgradeJavaVersionTest.java +++ b/src/test/java/org/openrewrite/java/migrate/UpgradeJavaVersionTest.java @@ -44,13 +44,13 @@ void mavenUpgradeFromJava8ToJava17ViaProperties() { """ 4.0.0 - + 1.8 1.8 1.8 - + com.mycompany.app my-app 1 @@ -60,13 +60,13 @@ void mavenUpgradeFromJava8ToJava17ViaProperties() { """ 4.0.0 - + 17 17 17 - + com.mycompany.app my-app 1