Fix Maven Plugin tests on main

See gh-47318
See gh-47319
This commit is contained in:
Andy Wilkinson 2025-09-25 08:47:39 +01:00
parent 27715dee20
commit 7979a51f65
8 changed files with 4 additions and 7 deletions

View File

@ -187,7 +187,6 @@ class JarIntegrationTests extends AbstractArchiveIntegrationTests {
assertThat(jar(repackaged)).hasEntryWithNameStartingWith("BOOT-INF/classes/")
.hasEntryWithNameStartingWith("BOOT-INF/lib/spring-context")
.hasEntryWithNameStartingWith("BOOT-INF/lib/spring-core")
.hasEntryWithNameStartingWith("BOOT-INF/lib/spring-jcl")
.doesNotHaveEntryWithNameStartingWith("BOOT-INF/lib/log4j-api-");
});
}
@ -199,7 +198,6 @@ class JarIntegrationTests extends AbstractArchiveIntegrationTests {
assertThat(jar(repackaged)).hasEntryWithNameStartingWith("BOOT-INF/classes/")
.hasEntryWithNameStartingWith("BOOT-INF/lib/spring-context")
.hasEntryWithNameStartingWith("BOOT-INF/lib/spring-core")
.hasEntryWithNameStartingWith("BOOT-INF/lib/spring-jcl")
.hasEntryWithNameStartingWith("BOOT-INF/lib/log4j-api-");
});
}
@ -211,7 +209,6 @@ class JarIntegrationTests extends AbstractArchiveIntegrationTests {
assertThat(jar(repackaged)).hasEntryWithNameStartingWith("BOOT-INF/classes/")
.hasEntryWithNameStartingWith("BOOT-INF/lib/spring-context")
.hasEntryWithNameStartingWith("BOOT-INF/lib/spring-core")
.hasEntryWithNameStartingWith("BOOT-INF/lib/spring-jcl")
.doesNotHaveEntryWithNameStartingWith("BOOT-INF/lib/log4j-api-");
});
}

View File

@ -117,15 +117,15 @@ public abstract class AbstractPackagerMojo extends AbstractDependencyFilterMojo
* Include optional dependencies.
* @since 3.5.7
*/
@Parameter(defaultValue = "true")
public boolean includeOptional = true;
@Parameter(defaultValue = "false")
public boolean includeOptional;
/**
* Include JAR tools.
* @since 3.3.0
*/
@Parameter(defaultValue = "false")
public boolean includeTools;
@Parameter(defaultValue = "true")
public boolean includeTools = true;
/**
* Layer configuration with options to disable layer creation, exclude layer tools