From b39d1910bcd37505786ebaa12fea146ef72f5f9e Mon Sep 17 00:00:00 2001 From: Phillip Webb Date: Wed, 28 Oct 2020 14:07:27 -0700 Subject: [PATCH] Fix test failure caused by MavenBuild upgrades See gh-23937 --- .../org/springframework/boot/maven/JarIntegrationTests.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spring-boot-project/spring-boot-tools/spring-boot-maven-plugin/src/intTest/java/org/springframework/boot/maven/JarIntegrationTests.java b/spring-boot-project/spring-boot-tools/spring-boot-maven-plugin/src/intTest/java/org/springframework/boot/maven/JarIntegrationTests.java index 8ebfbdafcf..c2c2b79d69 100644 --- a/spring-boot-project/spring-boot-tools/spring-boot-maven-plugin/src/intTest/java/org/springframework/boot/maven/JarIntegrationTests.java +++ b/spring-boot-project/spring-boot-tools/spring-boot-maven-plugin/src/intTest/java/org/springframework/boot/maven/JarIntegrationTests.java @@ -310,7 +310,8 @@ class JarIntegrationTests extends AbstractArchiveIntegrationTests { "snapshot-dependencies", "application"); assertThat(layerIndex.get("application")).contains("BOOT-INF/lib/jar-release-0.0.1.RELEASE.jar", "BOOT-INF/lib/jar-snapshot-0.0.1.BUILD-SNAPSHOT.jar"); - assertThat(layerIndex.get("dependencies")).contains("BOOT-INF/lib/log4j-api-2.12.1.jar"); + assertThat(layerIndex.get("dependencies")) + .anyMatch((dependency) -> dependency.startsWith("BOOT-INF/lib/log4j-api-2")); } catch (IOException ex) { }