From c896d2a196362daa0173dcca7fa77f26225b29f8 Mon Sep 17 00:00:00 2001 From: Gravit Date: Sun, 2 Jun 2019 08:33:31 +0700 Subject: [PATCH] =?UTF-8?q?[FIX]=20=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2?= =?UTF-8?q?=D0=BB=D0=B5=D0=BD=D0=B0=20=D0=BF=D1=80=D0=BE=D0=B1=D0=BB=D0=B5?= =?UTF-8?q?=D0=BC=D0=B0=20=D1=81=20=D0=B4=D1=83=D0=B1=D0=BB=D1=8F=D0=B6?= =?UTF-8?q?=D0=BE=D0=BC=20module-info.class/LICENSE.txt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ru/gravit/launchserver/binary/tasks/AttachJarsTask.java | 3 +++ Launcher/build.gradle | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/LaunchServer/src/main/java/ru/gravit/launchserver/binary/tasks/AttachJarsTask.java b/LaunchServer/src/main/java/ru/gravit/launchserver/binary/tasks/AttachJarsTask.java index 796b367c..f68c3d4e 100644 --- a/LaunchServer/src/main/java/ru/gravit/launchserver/binary/tasks/AttachJarsTask.java +++ b/LaunchServer/src/main/java/ru/gravit/launchserver/binary/tasks/AttachJarsTask.java @@ -22,6 +22,9 @@ public AttachJarsTask(LaunchServer srv) { jars = new ArrayList<>(); exclusions = new ArrayList<>(); exclusions.add("META-INF"); + exclusions.add("module-info.class"); + exclusions.add("LICENSE"); + exclusions.add("LICENSE.txt"); } @Override diff --git a/Launcher/build.gradle b/Launcher/build.gradle index 55457b58..ca0157a6 100644 --- a/Launcher/build.gradle +++ b/Launcher/build.gradle @@ -24,7 +24,8 @@ "Premain-Class": mainAgentName, "Can-Redefine-Classes": "true", "Can-Retransform-Classes": "true", - "Can-Set-Native-Method-Prefix": "true") + "Can-Set-Native-Method-Prefix": "true", + "Multi-Release-Jar": "true") } shadowJar {