Polish Gradle plugin after layering being enabled by default

Closes gh-20983
This commit is contained in:
Andy Wilkinson
2020-08-06 11:37:09 +01:00
parent 9f558181d5
commit 079b5d3f50
4 changed files with 9 additions and 24 deletions

View File

@@ -261,16 +261,12 @@ class BootJarTests extends AbstractBootArchiveTests<TestBootJar> {
}
private File createLayeredJar() throws IOException {
return createLayeredJar(null);
return createLayeredJar((spec) -> {
});
}
private File createLayeredJar(Action<LayeredSpec> action) throws IOException {
if (action != null) {
getTask().layered(action);
}
else {
getTask().layered();
}
getTask().layered(action);
addContent();
executeTask();
return getTask().getArchiveFile().get().getAsFile();