aboutsummaryrefslogtreecommitdiffstats
path: root/build.gradle
diff options
context:
space:
mode:
authorZipeng WU <zipeng.wu@sonarsource.com>2022-12-06 11:32:02 +0100
committersonartech <sonartech@sonarsource.com>2022-12-09 20:03:10 +0000
commit5b5c074f3d6e0426df7649ee76e374c39687618b (patch)
treebd39330434d4ed3ce4e7684a293543c0d238d928 /build.gradle
parent1c7171d0aec77e28404716cc29643db085139fc7 (diff)
downloadsonarqube-5b5c074f3d6e0426df7649ee76e374c39687618b.tar.gz
sonarqube-5b5c074f3d6e0426df7649ee76e374c39687618b.zip
SONAR-17565 Support running SonarQube with Java 17
Diffstat (limited to 'build.gradle')
-rw-r--r--build.gradle3
1 files changed, 3 insertions, 0 deletions
diff --git a/build.gradle b/build.gradle
index 3b440b30bbf..62a1a37a745 100644
--- a/build.gradle
+++ b/build.gradle
@@ -146,6 +146,9 @@ subprojects {
// do not deploy to Artifactory by default
artifactoryPublish.skip = true
+ // Produce Java 11 bytecode while making sure the code does not use any APIs from Java 17
+ compileJava.options.release = 11
+
compileJava.options.encoding = "UTF-8"
compileTestJava.options.encoding = "UTF-8"