Skip to content

Commit b39d191

Browse files
committed
Fix test failure caused by MavenBuild upgrades
See gh-23937
1 parent 3be4e22 commit b39d191

File tree

1 file changed

+2
-1
lines changed
  • spring-boot-project/spring-boot-tools/spring-boot-maven-plugin/src/intTest/java/org/springframework/boot/maven

1 file changed

+2
-1
lines changed

spring-boot-project/spring-boot-tools/spring-boot-maven-plugin/src/intTest/java/org/springframework/boot/maven/JarIntegrationTests.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,8 @@ void repackagedJarContainsTheLayersIndexByDefault(MavenBuild mavenBuild) {
310310
"snapshot-dependencies", "application");
311311
assertThat(layerIndex.get("application")).contains("BOOT-INF/lib/jar-release-0.0.1.RELEASE.jar",
312312
"BOOT-INF/lib/jar-snapshot-0.0.1.BUILD-SNAPSHOT.jar");
313-
assertThat(layerIndex.get("dependencies")).contains("BOOT-INF/lib/log4j-api-2.12.1.jar");
313+
assertThat(layerIndex.get("dependencies"))
314+
.anyMatch((dependency) -> dependency.startsWith("BOOT-INF/lib/log4j-api-2"));
314315
}
315316
catch (IOException ex) {
316317
}

0 commit comments

Comments
 (0)