From: Duarte Meneses Date: Thu, 16 May 2019 21:53:57 +0000 (-0500) Subject: Use "--release" javac option also for tests X-Git-Tag: 7.8~216 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=09fe643e4811c86c0ff56b852f3fb79804a81768;p=sonarqube.git Use "--release" javac option also for tests --- diff --git a/build.gradle b/build.gradle index 886afe2d31a..7d94be836e3 100644 --- a/build.gradle +++ b/build.gradle @@ -251,11 +251,8 @@ subprojects { exclude group: 'javax.mail', module: 'mail' } - compileJava { - options.compilerArgs.addAll(['--release', '8']) - } - tasks.withType(JavaCompile) { + options.compilerArgs.addAll(['--release', '8']) options.encoding = 'UTF-8' }