Remove shadowJar.

This commit is contained in:
ZekerZhayard 2021-04-24 20:00:15 +08:00 committed by Yuhui Huang
parent e36105d937
commit e91ec13dbd

View File

@ -5,7 +5,6 @@ buildscript {
} }
plugins { plugins {
id 'com.github.johnrengelman.shadow' version '5.2.0'
id 'application' id 'application'
} }
@ -126,26 +125,21 @@ jar {
'javafx.base/com.sun.javafx.event' 'javafx.base/com.sun.javafx.event'
].join(" ") ].join(" ")
} }
finalizedBy shadowJar
}
shadowJar { from {
classifier = null configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }
}
exclude 'META-INF/maven/**'
exclude 'META-INF/NOTICE.txt'
exclude 'META-INF/LICENSE.txt'
into('META-INF/versions/11') { into('META-INF/versions/11') {
from sourceSets.java11.output from sourceSets.java11.output
} }
dependencies { exclude 'META-INF/maven/**'
exclude(dependency('org.jetbrains:annotations')) exclude 'META-INF/NOTICE.txt'
} exclude 'META-INF/LICENSE.txt'
doLast { doLast {
//repack(jar.archivePath) repack(jar.archivePath)
attachSignature(jar.archivePath) attachSignature(jar.archivePath)
createChecksum(jar.archivePath) createChecksum(jar.archivePath)
} }