Don't include binary jars in loader-tools source jar

Closes gh-28113
This commit is contained in:
Andy Wilkinson 2021-09-23 09:49:27 +01:00
parent 46b47b80aa
commit 5957dfeea4
1 changed files with 4 additions and 9 deletions

View File

@ -35,12 +35,6 @@ dependencies {
testImplementation("org.zeroturnaround:zt-zip:1.13") testImplementation("org.zeroturnaround:zt-zip:1.13")
} }
sourceSets {
main {
resources.srcDirs generatedResources
}
}
task reproducibleLoaderJar(type: Jar) { task reproducibleLoaderJar(type: Jar) {
dependsOn configurations.loader dependsOn configurations.loader
from { from {
@ -69,9 +63,10 @@ task reproducibleJarModeLayerToolsJar(type: Jar) {
destinationDirectory = file("${generatedResources}/META-INF/jarmode") destinationDirectory = file("${generatedResources}/META-INF/jarmode")
} }
processResources { sourceSets {
dependsOn reproducibleLoaderJar main {
dependsOn reproducibleJarModeLayerToolsJar output.dir(generatedResources, builtBy: [reproducibleJarModeLayerToolsJar, reproducibleLoaderJar])
}
} }
compileJava { compileJava {