fix jar runtime exception

This commit is contained in:
327135569 2021-04-07 17:24:28 +08:00
parent 1845e4e5b4
commit e4a3cf7e6c
1 changed files with 5 additions and 5 deletions

View File

@ -10,10 +10,10 @@ java {
compileJava.options.encoding = "UTF-8"
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile project(':axmlprinter')
compile project(':apksigner')
compile group: 'commons-io', name: 'commons-io', version: '2.8.0'
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation project(':axmlprinter')
implementation project(':apksigner')
implementation group: 'commons-io', name: 'commons-io', version: '2.8.0'
}
jar {
@ -23,7 +23,7 @@ jar {
attributes 'Main-Class': 'com.storm.wind.xpatch.MainCommand'
}
from {
(configurations.runtime).collect {
configurations.runtimeClasspath.collect {
it.isDirectory() ? it : zipTree(it)
}
}