From a0788e46238ede4e4a449d50e9605386a23b70cb Mon Sep 17 00:00:00 2001 From: Gravita <12893402+gravit0@users.noreply.github.com> Date: Tue, 23 Jan 2024 19:44:19 +0700 Subject: [PATCH] [FIX] Remove legacy launch4j in build.gradle --- LaunchServer/build.gradle | 20 +------------------- 1 file changed, 1 insertion(+), 19 deletions(-) diff --git a/LaunchServer/build.gradle b/LaunchServer/build.gradle index 4663ce50..6743d5ec 100644 --- a/LaunchServer/build.gradle +++ b/LaunchServer/build.gradle @@ -112,27 +112,9 @@ pack project(':LauncherAPI') from configurations.hikari } -tasks.register('launch4j', Copy) { - duplicatesStrategy = 'EXCLUDE' - into "$buildDir/libs/libraries/launch4j" - from(configurations.launch4j.collect { - it.isDirectory() ? it : ((it.getName().startsWith("launch4j") && it.getName().contains("workdir")) ? zipTree(it) : it) - }) - includeEmptyDirs false - eachFile { FileCopyDetails fcp -> - if (fcp.relativePath.pathString.startsWith("launch4j-") && - fcp.relativePath.pathString.contains("workdir")) { - def segments = fcp.relativePath.segments - def pathSegments = segments[1..-1] as String[] - fcp.relativePath = new RelativePath(!fcp.file.isDirectory(), pathSegments) - } else if (fcp.relativePath.pathString.contains("META-INF")) fcp.exclude() - fcp.mode = 0755 - } -} - tasks.register('dumpLibs', Copy) { duplicatesStrategy = 'EXCLUDE' - dependsOn tasks.hikari, tasks.launch4j + dependsOn tasks.hikari into "$buildDir/libs/libraries" from configurations.bundleOnly }