Support building when JDK 7 runtime is missing

This commit is contained in:
Lanchon 2018-06-13 01:48:27 -03:00
parent 9c3a656b00
commit dc54e65d71

View File

@ -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()