resources {
srcDirs "$jalviewDir/$resourceDir"
- srcDirs "$jalviewDir/$libDir"
+ srcDirs "$jalviewDir/$libDistDir"
}
jar.destinationDir = file("$jalviewDir/$packageDir")
}
task syncLib(type: Sync) {
- def syncDir = "$classes/$libDir"
- from fileTree("$jalviewDir/$libDir")
+ def syncDir = "$classes/$libDistDir"
+ from fileTree("$jalviewDir/$libDistDir")
into syncDir
}
// doing a Sync instead of Copy as Copy doesn't deal with "outputs" very well
task syncJars(type: Sync) {
- from fileTree("$jalviewDir/$libDir").include("**/*.jar").include("*.jar").files
+ from fileTree("$jalviewDir/$libDistDir").include("**/*.jar").include("*.jar").files
into "$jalviewDir/$packageDir"
preserve {
include jar.archiveName
shadowJar {
dependsOn makeDist
- if (JAVA_VERSION.equals("11")) {
- from ("$jalviewDir/$j11libDir") {
+ from ("$jalviewDir/$libDistDir") {
include("*.jar")
- }
}
mainClassName = shadowJarMainClass
mergeServiceFiles()