|
|
@ -50,24 +50,18 @@ task reproducibleLoaderJar(type: Jar) {
|
|
|
|
destinationDirectory = file("${generatedResources}/META-INF/loader")
|
|
|
|
destinationDirectory = file("${generatedResources}/META-INF/loader")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
task reproducibleJarModeLayerToolsJar(type: Jar) {
|
|
|
|
task layerToolsJar(type: Sync) {
|
|
|
|
dependsOn configurations.jarmode
|
|
|
|
dependsOn configurations.jarmode
|
|
|
|
from {
|
|
|
|
from {
|
|
|
|
zipTree(configurations.jarmode.incoming.files.singleFile).matching {
|
|
|
|
file(configurations.jarmode.incoming.files.singleFile)
|
|
|
|
exclude "META-INF/LICENSE.txt"
|
|
|
|
|
|
|
|
exclude "META-INF/NOTICE.txt"
|
|
|
|
|
|
|
|
exclude "META-INF/spring-boot.properties"
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
rename({ "spring-boot-jarmode-layertools.jar" })
|
|
|
|
reproducibleFileOrder = true
|
|
|
|
into(file("${generatedResources}/META-INF/jarmode"))
|
|
|
|
preserveFileTimestamps = false
|
|
|
|
|
|
|
|
archiveFileName = "spring-boot-jarmode-layertools.jar"
|
|
|
|
|
|
|
|
destinationDirectory = file("${generatedResources}/META-INF/jarmode")
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
sourceSets {
|
|
|
|
sourceSets {
|
|
|
|
main {
|
|
|
|
main {
|
|
|
|
output.dir(generatedResources, builtBy: [reproducibleJarModeLayerToolsJar, reproducibleLoaderJar])
|
|
|
|
output.dir(generatedResources, builtBy: [layerToolsJar, reproducibleLoaderJar])
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|