mirror of
https://github.com/HMCL-dev/HMCL.git
synced 2025-09-09 03:46:18 -04:00
final jar
This commit is contained in:
parent
9695ddf8de
commit
99bb0d7a93
@ -225,6 +225,19 @@ task proguard(type: proguard.gradle.ProGuardTask) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
task finalJar(type: Jar) {
|
||||||
|
dependsOn proguard
|
||||||
|
|
||||||
|
classifier = 'final'
|
||||||
|
|
||||||
|
from { proguard.outJarFiles.collect { zipTree(it)} }
|
||||||
|
|
||||||
|
into('/') {
|
||||||
|
from { shadowJar.outputs.files.collect { zipTree(it) } }
|
||||||
|
include("META-INF/versions/**")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
def createExecutable(String suffix, String header) {
|
def createExecutable(String suffix, String header) {
|
||||||
def output = new File(jar.archivePath.parentFile, jar.archivePath.name[0..-4] + suffix)
|
def output = new File(jar.archivePath.parentFile, jar.archivePath.name[0..-4] + suffix)
|
||||||
output.bytes = new File(project.projectDir, header).bytes
|
output.bytes = new File(project.projectDir, header).bytes
|
||||||
|
Loading…
x
Reference in New Issue
Block a user