From 7c0cf17da361d3ec78ce97da6cc65a0d76f7a656 Mon Sep 17 00:00:00 2001 From: Zaxar163 Date: Sat, 10 Aug 2019 18:51:23 +0300 Subject: [PATCH] =?UTF-8?q?[FIX]=20=D0=A7=D0=B8=D1=81=D1=82=D1=8B=D0=B9=20?= =?UTF-8?q?jar=20=D0=BB=D0=B0=D1=83=D0=BD=D1=87=D1=81=D0=B5=D1=80=D0=B2?= =?UTF-8?q?=D0=B5=D1=80`=D0=B0.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- LaunchServer/build.gradle | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/LaunchServer/build.gradle b/LaunchServer/build.gradle index 6e70bff8..1b3ab817 100644 --- a/LaunchServer/build.gradle +++ b/LaunchServer/build.gradle @@ -40,6 +40,19 @@ ) } + +task clean(type: Jar, dependsOn: jar) { + classifier = 'clean' + manifest.attributes("Main-Class": mainClassName, + "Premain-Class": mainAgentName, + "Can-Redefine-Classes": "true", + "Can-Retransform-Classes": "true", + "Can-Set-Native-Method-Prefix": "true" + ) + from sourceSets.main.output +} + + dependencies { pack project(':LauncherAPI') bundle 'org.ow2.asm:asm-commons:7.1' @@ -146,4 +159,4 @@ task dumpClientLibs(type: Copy) { from parent.childProjects.Launcher.tasks.dumpLibs.destinationDir } -build.dependsOn tasks.dumpLibs, tasks.dumpCompileOnlyLibs, tasks.dumpClientLibs, tasks.bundle +build.dependsOn tasks.dumpLibs, tasks.dumpCompileOnlyLibs, tasks.dumpClientLibs, tasks.bundle, tasks.clean