diff --git a/common.gradle b/common.gradle index 308b86f3c7..b162de51b1 100644 --- a/common.gradle +++ b/common.gradle @@ -20,6 +20,9 @@ tasks.withType(JavaCompile) { // compile-time options: //options.compilerArgs << '-Xlint:deprecation' // to show deprecation warnings options.compilerArgs << '-Xlint:unchecked' options.encoding = 'UTF-8' + if (JavaVersion.current().isCompatibleWith(JavaVersion.VERSION_1_10)) { + options.release = 8 + } } ext { @@ -40,7 +43,6 @@ dependencies { testImplementation 'org.codehaus.groovy:groovy-test:3.0.14' } - // Uncomment if you want to see the status of every test that is run and // the test output. /*