fix jar runtime exception
This commit is contained in:
parent
1845e4e5b4
commit
e4a3cf7e6c
|
|
@ -10,10 +10,10 @@ java {
|
||||||
compileJava.options.encoding = "UTF-8"
|
compileJava.options.encoding = "UTF-8"
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compile fileTree(dir: 'libs', include: ['*.jar'])
|
implementation fileTree(dir: 'libs', include: ['*.jar'])
|
||||||
compile project(':axmlprinter')
|
implementation project(':axmlprinter')
|
||||||
compile project(':apksigner')
|
implementation project(':apksigner')
|
||||||
compile group: 'commons-io', name: 'commons-io', version: '2.8.0'
|
implementation group: 'commons-io', name: 'commons-io', version: '2.8.0'
|
||||||
}
|
}
|
||||||
|
|
||||||
jar {
|
jar {
|
||||||
|
|
@ -23,7 +23,7 @@ jar {
|
||||||
attributes 'Main-Class': 'com.storm.wind.xpatch.MainCommand'
|
attributes 'Main-Class': 'com.storm.wind.xpatch.MainCommand'
|
||||||
}
|
}
|
||||||
from {
|
from {
|
||||||
(configurations.runtime).collect {
|
configurations.runtimeClasspath.collect {
|
||||||
it.isDirectory() ? it : zipTree(it)
|
it.isDirectory() ? it : zipTree(it)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue