File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
spring-boot-project/spring-boot-tools/spring-boot-maven-plugin/src/intTest/java/org/springframework/boot/maven Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -196,7 +196,7 @@ void whenAnEntryIsExcludedItDoesNotAppearInTheRepackagedJar(MavenBuild mavenBuil
196196 .hasEntryWithNameStartingWith ("BOOT-INF/lib/spring-context" )
197197 .hasEntryWithNameStartingWith ("BOOT-INF/lib/spring-core" )
198198 .hasEntryWithNameStartingWith ("BOOT-INF/lib/spring-jcl" )
199- .doesNotHaveEntryWithName ("BOOT-INF/lib/servlet-api-2.5.jar " );
199+ .doesNotHaveEntryWithNameStartingWith ("BOOT-INF/lib/servlet-api-" );
200200 });
201201 }
202202
@@ -250,7 +250,7 @@ void whenAGroupIsExcludedNoEntriesInThatGroupAppearInTheRepackagedJar(MavenBuild
250250 .hasEntryWithNameStartingWith ("BOOT-INF/lib/spring-context" )
251251 .hasEntryWithNameStartingWith ("BOOT-INF/lib/spring-core" )
252252 .hasEntryWithNameStartingWith ("BOOT-INF/lib/spring-jcl" )
253- .doesNotHaveEntryWithName ("BOOT-INF/lib/log4j-api-2.4.1.jar " );
253+ .doesNotHaveEntryWithNameStartingWith ("BOOT-INF/lib/log4j-api-" );
254254 });
255255 }
256256
@@ -388,7 +388,7 @@ void repackagedJarContainsTheLayersIndexByDefault(MavenBuild mavenBuild) {
388388 assertThat (layerIndex .get ("application" )).contains ("BOOT-INF/lib/jar-release-0.0.1.RELEASE.jar" ,
389389 "BOOT-INF/lib/jar-snapshot-0.0.1.BUILD-SNAPSHOT.jar" );
390390 assertThat (layerIndex .get ("dependencies" ))
391- .anyMatch ((dependency ) -> dependency .startsWith ("BOOT-INF/lib/log4j-api-2 " ));
391+ .anyMatch ((dependency ) -> dependency .startsWith ("BOOT-INF/lib/log4j-api-" ));
392392 }
393393 catch (IOException ex ) {
394394 // Ignore
You can’t perform that action at this time.
0 commit comments