Polish "Make excludes configurable via property"

See gh-39837
This commit is contained in:
Andy Wilkinson
2024-04-11 16:28:32 +01:00
parent 58fc8f8c01
commit 2a6293940b
2 changed files with 5 additions and 4 deletions

View File

@@ -175,7 +175,7 @@ class JarIntegrationTests extends AbstractArchiveIntegrationTests {
.hasEntryWithNameStartingWith("BOOT-INF/lib/spring-context")
.hasEntryWithNameStartingWith("BOOT-INF/lib/spring-core")
.hasEntryWithNameStartingWith("BOOT-INF/lib/spring-jcl")
.doesNotHaveEntryWithNameStartingWith("BOOT-INF/lib/jakarta.servlet-api-");
.doesNotHaveEntryWithName("BOOT-INF/lib/servlet-api-2.5.jar");
});
}

View File

@@ -81,9 +81,10 @@ public abstract class AbstractDependencyFilterMojo extends AbstractMojo {
/**
* Collection of artifact definitions to exclude. The {@link Exclude} element defines
* mandatory {@code groupId} and {@code artifactId} properties and an optional
* {@code classifier} property. If passing in excludes as a property the syntax is
* <pre>-Dspring-boot.excludes=groupId1:artifactId1,groupId2:artifactId2:optional-qualifier</pre>
* mandatory {@code groupId} and {@code artifactId} components and an optional
* {@code classifier} component. When configured as a property, values should be
* comma-separated with colon-separated components:
* {@code groupId:artifactId,groupId:artifactId:classifier}
* @since 1.1.0
*/
@Parameter(property = "spring-boot.excludes")