mirror of
https://github.com/HMCL-dev/HMCL.git
synced 2025-09-16 15:26:27 -04:00
Remove shadowJar.
This commit is contained in:
parent
e36105d937
commit
e91ec13dbd
@ -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)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user