]> source.dussan.org Git - sonarqube.git/commitdiff
fix SonarQube scanner not picking Java language version
authorSébastien Lesaint <sebastien.lesaint@sonarsource.com>
Thu, 10 Oct 2019 09:12:19 +0000 (11:12 +0200)
committerSonarTech <sonartech@sonarsource.com>
Fri, 11 Oct 2019 18:21:06 +0000 (20:21 +0200)
build.gradle

index 2aab6bee5c9b62c7a0eee71fbfb7c957897be070..8c2aabfcb960e19415096358f216717e9786c78c 100644 (file)
@@ -98,6 +98,9 @@ subprojects {
   apply plugin: 'idea'
   apply plugin: 'org.owasp.dependencycheck'
 
+  sourceCompatibility = 1.8
+  targetCompatibility = 1.8
+
   // do not deploy to Artifactory by default
   artifactoryPublish.skip = true
 
@@ -292,9 +295,6 @@ 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) {