From e91ec13dbdba39a2cdd80a3b5024467a05b774bc Mon Sep 17 00:00:00 2001 From: ZekerZhayard Date: Sat, 24 Apr 2021 20:00:15 +0800 Subject: [PATCH] Remove shadowJar. --- HMCL/build.gradle | 20 +++++++------------- 1 file changed, 7 insertions(+), 13 deletions(-) diff --git a/HMCL/build.gradle b/HMCL/build.gradle index 6d42eb32e..a789e4bbc 100644 --- a/HMCL/build.gradle +++ b/HMCL/build.gradle @@ -5,7 +5,6 @@ buildscript { } plugins { - id 'com.github.johnrengelman.shadow' version '5.2.0' id 'application' } @@ -126,26 +125,21 @@ jar { 'javafx.base/com.sun.javafx.event' ].join(" ") } - finalizedBy shadowJar -} -shadowJar { - classifier = null - - exclude 'META-INF/maven/**' - exclude 'META-INF/NOTICE.txt' - exclude 'META-INF/LICENSE.txt' + from { + configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } + } into('META-INF/versions/11') { from sourceSets.java11.output } - dependencies { - exclude(dependency('org.jetbrains:annotations')) - } + exclude 'META-INF/maven/**' + exclude 'META-INF/NOTICE.txt' + exclude 'META-INF/LICENSE.txt' doLast { - //repack(jar.archivePath) + repack(jar.archivePath) attachSignature(jar.archivePath) createChecksum(jar.archivePath) }