]> source.dussan.org Git - sonarqube.git/commitdiff
Use "--release" javac option also for tests
authorDuarte Meneses <duarte.meneses@sonarsource.com>
Thu, 16 May 2019 21:53:57 +0000 (16:53 -0500)
committerSonarTech <sonartech@sonarsource.com>
Fri, 17 May 2019 18:21:08 +0000 (20:21 +0200)
build.gradle

index 886afe2d31aea5fab0edac837a224047b7152ffc..7d94be836e391a5d1f57bd1794658b65131b4d9b 100644 (file)
@@ -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'
   }