From ae86c2f30ebeb11f507ff3bcc79673c86ba20825 Mon Sep 17 00:00:00 2001 From: Andy Wilkinson Date: Thu, 4 May 2023 15:39:57 +0100 Subject: [PATCH] Avoid using Jackson 2.15 in system tests that invoke Gradle Closes gh-35273 --- .../spring-boot-image-tests/build.gradle | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/spring-boot-system-tests/spring-boot-image-tests/build.gradle b/spring-boot-system-tests/spring-boot-image-tests/build.gradle index 455e14076b..9de3b9c9fb 100644 --- a/spring-boot-system-tests/spring-boot-image-tests/build.gradle +++ b/spring-boot-system-tests/spring-boot-image-tests/build.gradle @@ -11,6 +11,17 @@ configurations { providedRuntime { extendsFrom dependencyManagement } + all { + resolutionStrategy { + eachDependency { dependency -> + // Downgrade Jackson as Gradle cannot cope with 2.15.0's multi-version + // jar files with bytecode in META-INF/versions/19 + if (dependency.requested.group.startsWith("com.fasterxml.jackson")) { + dependency.useVersion("2.14.2") + } + } + } + } } task syncMavenRepository(type: Sync) {