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
196
196
.hasEntryWithNameStartingWith ("BOOT-INF/lib/spring-context" )
197
197
.hasEntryWithNameStartingWith ("BOOT-INF/lib/spring-core" )
198
198
.hasEntryWithNameStartingWith ("BOOT-INF/lib/spring-jcl" )
199
- .doesNotHaveEntryWithName ("BOOT-INF/lib/servlet-api-2.5.jar " );
199
+ .doesNotHaveEntryWithNameStartingWith ("BOOT-INF/lib/servlet-api-" );
200
200
});
201
201
}
202
202
@@ -250,7 +250,7 @@ void whenAGroupIsExcludedNoEntriesInThatGroupAppearInTheRepackagedJar(MavenBuild
250
250
.hasEntryWithNameStartingWith ("BOOT-INF/lib/spring-context" )
251
251
.hasEntryWithNameStartingWith ("BOOT-INF/lib/spring-core" )
252
252
.hasEntryWithNameStartingWith ("BOOT-INF/lib/spring-jcl" )
253
- .doesNotHaveEntryWithName ("BOOT-INF/lib/log4j-api-2.4.1.jar " );
253
+ .doesNotHaveEntryWithNameStartingWith ("BOOT-INF/lib/log4j-api-" );
254
254
});
255
255
}
256
256
@@ -388,7 +388,7 @@ void repackagedJarContainsTheLayersIndexByDefault(MavenBuild mavenBuild) {
388
388
assertThat (layerIndex .get ("application" )).contains ("BOOT-INF/lib/jar-release-0.0.1.RELEASE.jar" ,
389
389
"BOOT-INF/lib/jar-snapshot-0.0.1.BUILD-SNAPSHOT.jar" );
390
390
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-" ));
392
392
}
393
393
catch (IOException ex ) {
394
394
// Ignore
You can’t perform that action at this time.
0 commit comments