mirror of
https://github.com/revanced/Apktool.git
synced 2024-11-18 18:39:23 +01:00
build: support for jdk9+ build
This commit is contained in:
parent
13aa5d2e25
commit
e3bead4b5b
@ -43,7 +43,12 @@ task cleanOutputDirectory(type: Delete) {
|
||||
task proguard(type: proguard.gradle.ProGuardTask, dependsOn: shadowJar) {
|
||||
injars shadowJar.archivePath
|
||||
|
||||
libraryjars "${System.properties['java.home']}/lib/rt.jar"
|
||||
// Java 9 and prior uses merged package for runtime, later uses split jmod files.
|
||||
if (System.getProperty("java.version").startsWith('1.')) {
|
||||
libraryjars "${System.properties['java.home']}/lib/rt.jar"
|
||||
} else {
|
||||
libraryjars "${System.getProperty('java.home')}/jmods/java.base.jmod", jarfilter: '!**.jar', filter: '!module-info.class'
|
||||
}
|
||||
|
||||
dontobfuscate
|
||||
dontoptimize
|
||||
|
Loading…
Reference in New Issue
Block a user