mirror of
https://github.com/revanced/Apktool.git
synced 2025-01-05 17:45:52 +01:00
fix: properly determine greater than java8
This commit is contained in:
parent
2d41a613cc
commit
24c3c0dbc9
@ -44,10 +44,10 @@ task proguard(type: proguard.gradle.ProGuardTask, dependsOn: shadowJar) {
|
||||
injars shadowJar.getArchiveFile()
|
||||
|
||||
// Java 9 and prior uses merged package for runtime, later uses split jmod files.
|
||||
if (System.getProperty("java.version").startsWith('1.')) {
|
||||
if (JavaVersion.current() <= JavaVersion.VERSION_1_8) {
|
||||
libraryjars "${System.properties['java.home']}/lib/rt.jar"
|
||||
} else {
|
||||
libraryjars "${System.getProperty('java.home')}/jmods/java.base.jmod", jarfilter: '!**.jar', filter: '!module-info.class'
|
||||
libraryjars "${System.properties['java.home']}/jmods/java.base.jmod", jarfilter: '!**.jar', filter: '!module-info.class'
|
||||
}
|
||||
|
||||
dontobfuscate
|
||||
|
Loading…
Reference in New Issue
Block a user