fix build

This commit is contained in:
327135569 2021-04-08 23:34:42 +08:00
parent bd87428415
commit d720408498
1 changed files with 2 additions and 1 deletions

View File

@ -25,6 +25,7 @@ jar {
manifest { manifest {
attributes 'Main-Class': 'com.storm.wind.xpatch.MainCommand' attributes 'Main-Class': 'com.storm.wind.xpatch.MainCommand'
} }
dependsOn configurations.runtimeClasspath
from { from {
configurations.runtimeClasspath.collect { configurations.runtimeClasspath.collect {
it.isDirectory() ? it : zipTree(it) it.isDirectory() ? it : zipTree(it)
@ -33,7 +34,7 @@ jar {
from fileTree(dir: 'src/main', includes: ['assets/**']) from fileTree(dir: 'src/main', includes: ['assets/**'])
exclude 'META-INF/*.SF', 'META-INF/*.DSA', 'META-INF/*.RSA', 'META-INF/*.MF' exclude 'META-INF/*.SF', 'META-INF/*.DSA', 'META-INF/*.RSA', 'META-INF/*.MF', 'META-INF/*.txt'
} }
tasks.build.doLast { tasks.build.doLast {