mirror of
https://github.com/revanced/multidexlib2.git
synced 2025-04-29 22:24:28 +02:00
Support building when JDK 7 runtime is missing
This commit is contained in:
parent
9c3a656b00
commit
dc54e65d71
@ -22,7 +22,8 @@ version = dexlib2Version + multidexlib2VersionSuffix
|
||||
|
||||
sourceCompatibility = '1.7'
|
||||
def jdk = findProperty('JDK7_HOME') ?: '/usr/lib/jvm/java-7-openjdk-amd64'
|
||||
compileJava.options.bootClasspath = new File(jdk, 'jre/lib/rt.jar')
|
||||
def jdk_rt = new File(jdk, 'jre/lib/rt.jar')
|
||||
if (jdk_rt.exists()) compileJava.options.bootClasspath = jdk_rt
|
||||
|
||||
repositories {
|
||||
jcenter()
|
||||
|
Loading…
x
Reference in New Issue
Block a user