// Solution for bootstrap classpath warning and possible issues with compatibility with 1.7 libraries
// was taken from this post on discuss.gradle.org: http://bit.ly/24xD9j0
...
...
@@ -118,8 +118,8 @@ if (version.java8Compatible || version.java9Compatible) {
logger.warn"\n"
logger.warn"In some isolated instances, using a bootstrap library from a JDK version later than 1.7 can result in run-time errors.\n"
}
}elseif(!version.java7Compatible){
thrownewBuildCancelledException("You are using a JDK version (${version}) that is not compatible with Java 7. The XNAT build will fail. Please install a JDK version of Java 7 or later.")
}elseif(!javaVersion.java7Compatible){
thrownewBuildCancelledException("You are using a JDK version (${javaVersion}) that is not compatible with Java 7. The XNAT build will fail. Please install a JDK version of Java 7 or later.")