diff options
author | Sébastien Lesaint <sebastien.lesaint@sonarsource.com> | 2019-10-10 11:12:19 +0200 |
---|---|---|
committer | SonarTech <sonartech@sonarsource.com> | 2019-10-11 20:21:06 +0200 |
commit | 51a03704505d995f389524a1f30fbfbcd778327e (patch) | |
tree | d998aac500f36762ba005403c3e47f6fdafda89b | |
parent | 6497532a1a05c21ee15a2d00b98672eb8dcf3d7d (diff) | |
download | sonarqube-51a03704505d995f389524a1f30fbfbcd778327e.tar.gz sonarqube-51a03704505d995f389524a1f30fbfbcd778327e.zip |
fix SonarQube scanner not picking Java language version
-rw-r--r-- | build.gradle | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/build.gradle b/build.gradle index 2aab6bee5c9..8c2aabfcb96 100644 --- a/build.gradle +++ b/build.gradle @@ -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) { |