Defer processing of zipTree source until execution time

Closes gh-25835
This commit is contained in:
Andy Wilkinson
2021-03-30 20:41:46 +01:00
parent fef24a300b
commit ca9a619259
3 changed files with 19 additions and 14 deletions

View File

@@ -106,8 +106,8 @@ task fullJar(type: Jar) {
from(sourceSets.main.output) {
into "BOOT-INF/classes"
}
into("") {
from(zipTree(configurations.loader.singleFile)) {
from {
zipTree(configurations.loader.singleFile).matching {
exclude "META-INF/LICENSE.txt"
exclude "META-INF/NOTICE.txt"
}