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 {