You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
updated source/target compatibility options to use java 1.7, ending support for 1.6. Also updated the JAVA_JRE_7 env variable for the finding jars for the boot class path.
thrownewProjectConfigurationException("Archive $archivePath required for building in Java 6 could not be found.", null)
37
+
thrownewProjectConfigurationException("Archive $archivePath required for building in Java 7 could not be found.", null)
38
38
}
39
39
logger.info "Archive '$archivePath' added to boot class path"
40
40
bootClasspath +="$archivePath;"
41
41
}
42
42
tasks.withType(JavaCompile) {
43
-
sourceCompatibility =1.6
44
-
targetCompatibility =1.6
43
+
sourceCompatibility =1.7
44
+
targetCompatibility =1.7
45
45
options.bootClasspath = bootClasspath
46
46
}
47
47
} else {
48
-
logger.warn "Environment variable 'JAVA_JRE_6' is not defined - falling back to use machine default Java SDK"
48
+
// FIXME this warning only makes sense if the JDK version being used is > 1.7.
49
+
// FIXME if this warning makes sense, it should be fatal if this is intended for release
50
+
logger.warn "IMPORTANT: Environment variable 'JAVA_JRE_7' is not defined - Install JRE 7 and set 'JAVA_JRE_7' to prevent runtime compatibility issues!"
0 commit comments