]> source.dussan.org Git - sonarqube.git/commitdiff
Set target and source compatibility for Java 8 for IDEs to load correct language...
authorDuarte Meneses <duarte.meneses@sonarsource.com>
Wed, 29 May 2019 13:54:04 +0000 (08:54 -0500)
committerSonarTech <sonartech@sonarsource.com>
Wed, 29 May 2019 18:21:13 +0000 (20:21 +0200)
build.gradle

index 941d749e36320529c9d9a2c6458344b09e4e78ef..080f3785c61bc39e348ca5384a0d43c51675756e 100644 (file)
@@ -255,6 +255,9 @@ subprojects {
   tasks.withType(JavaCompile) {
     options.compilerArgs.addAll(['--release', '8'])
     options.encoding = 'UTF-8'
+    // redudant, just for IDEs to set the correct language level
+    sourceCompatibility = 1.8
+    targetCompatibility = 1.8
   }
 
   tasks.withType(Javadoc) {