From ed1d12f14dad45c806a48b06326e0509bec572c0 Mon Sep 17 00:00:00 2001 From: Elvea Huang Date: Wed, 2 Oct 2024 22:55:43 +0800 Subject: [PATCH] =?UTF-8?q?=E6=89=93=E5=8C=85=E8=AA=BF=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../app-server/build.gradle.kts | 31 ------------------- 1 file changed, 31 deletions(-) diff --git a/platform-boot-server/app-server/build.gradle.kts b/platform-boot-server/app-server/build.gradle.kts index 4c980e92c..7a51f5579 100644 --- a/platform-boot-server/app-server/build.gradle.kts +++ b/platform-boot-server/app-server/build.gradle.kts @@ -62,38 +62,7 @@ dependencies { testImplementation("jakarta.servlet:jakarta.servlet-api") } -var clearLibs = tasks.register("clearLibs") { - delete(layout.buildDirectory.dir("libs/libs-internal")) - delete(layout.buildDirectory.dir("libs/libs-external")) -} - -var copyLibs = tasks.register("copyLibs") { - duplicatesStrategy = DuplicatesStrategy.EXCLUDE - from(configurations.runtimeClasspath) - include("**/platform-*.jar") - into(layout.buildDirectory.dir("libs/libs-internal")) -} - -var copyExtLibs = tasks.register("copyExtLibs") { - duplicatesStrategy = DuplicatesStrategy.EXCLUDE - from(configurations.runtimeClasspath) - exclude("**/platform-*.jar") - into(layout.buildDirectory.dir("libs/libs-external")) -} - tasks.named("bootJar") { duplicatesStrategy = DuplicatesStrategy.EXCLUDE - dependsOn(clearLibs) - dependsOn(copyExtLibs) - dependsOn(copyLibs) - exclude("*.jar") - manifest { - attributes["Manifest-Version"] = 1.0 - attributes["Class-Path"] = configurations.runtimeClasspath.get().files.onEach { - println(it.name) - }.joinToString(" ") { - if (it.name.startsWith("platform-")) "./libs-internal/" + it.name else "./libs-external/" + it.name - } - } archiveFileName.set("app.jar") }