From 2ce6e11c8790138a787b3ff98f382c7869220ca6 Mon Sep 17 00:00:00 2001 From: Sam Snyder Date: Wed, 17 Jan 2024 09:58:53 -0800 Subject: [PATCH] On of the spring 2.x dependencies removed guava. Add an explicit dependency for it if it is in use --- src/main/resources/META-INF/rewrite/spring-boot-24.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main/resources/META-INF/rewrite/spring-boot-24.yml b/src/main/resources/META-INF/rewrite/spring-boot-24.yml index b93e1129b..84b9feada 100644 --- a/src/main/resources/META-INF/rewrite/spring-boot-24.yml +++ b/src/main/resources/META-INF/rewrite/spring-boot-24.yml @@ -54,6 +54,12 @@ recipeList: artifactId: spring-boot-starter-test exclusionGroupId: junit exclusionArtifactId: junit + - org.openrewrite.java.dependencies.AddDependency: + groupId: com.google.guava + artifactId: guava + version: "28.2" + versionPattern: -jre + onlyIfUsing: com.google.common.* # Use recommended replacements for deprecated APIs - org.openrewrite.java.spring.boot2.MigrateUndertowServletWebServerFactoryIsEagerInitFilters