Skip to content

Commit f6da5e7

Browse files
committed
Merge branch '3.5.x'
2 parents 0b0b742 + 8d63043 commit f6da5e7

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

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

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ void whenAnEntryIsExcludedItDoesNotAppearInTheRepackagedJar(MavenBuild mavenBuil
176176
.hasEntryWithNameStartingWith("BOOT-INF/lib/spring-context")
177177
.hasEntryWithNameStartingWith("BOOT-INF/lib/spring-core")
178178
.hasEntryWithNameStartingWith("BOOT-INF/lib/commons-logging")
179-
.doesNotHaveEntryWithName("BOOT-INF/lib/servlet-api-2.5.jar");
179+
.doesNotHaveEntryWithNameStartingWith("BOOT-INF/lib/servlet-api-");
180180
});
181181
}
182182

@@ -228,9 +228,8 @@ void whenAGroupIsExcludedNoEntriesInThatGroupAppearInTheRepackagedJar(MavenBuild
228228
File repackaged = new File(project, "target/jar-exclude-group-0.0.1.BUILD-SNAPSHOT.jar");
229229
assertThat(jar(repackaged)).hasEntryWithNameStartingWith("BOOT-INF/classes/")
230230
.hasEntryWithNameStartingWith("BOOT-INF/lib/spring-context")
231-
.hasEntryWithNameStartingWith("BOOT-INF/lib/spring-core")
232231
.hasEntryWithNameStartingWith("BOOT-INF/lib/commons-logging")
233-
.doesNotHaveEntryWithName("BOOT-INF/lib/log4j-api-2.4.1.jar");
232+
.doesNotHaveEntryWithName("BOOT-INF/lib/log4j-api-");
234233
});
235234
}
236235

@@ -368,7 +367,7 @@ void repackagedJarContainsTheLayersIndexByDefault(MavenBuild mavenBuild) {
368367
assertThat(layerIndex.get("application")).contains("BOOT-INF/lib/jar-release-0.0.1.RELEASE.jar",
369368
"BOOT-INF/lib/jar-snapshot-0.0.1.BUILD-SNAPSHOT.jar");
370369
assertThat(layerIndex.get("dependencies"))
371-
.anyMatch((dependency) -> dependency.startsWith("BOOT-INF/lib/log4j-api-2"));
370+
.anyMatch((dependency) -> dependency.startsWith("BOOT-INF/lib/log4j-api-"));
372371
}
373372
catch (IOException ex) {
374373
// Ignore

0 commit comments

Comments
 (0)