From 5b5c074f3d6e0426df7649ee76e374c39687618b Mon Sep 17 00:00:00 2001 From: Zipeng WU Date: Tue, 6 Dec 2022 11:32:02 +0100 Subject: SONAR-17565 Support running SonarQube with Java 17 --- build.gradle | 3 +++ 1 file changed, 3 insertions(+) (limited to 'build.gradle') 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" -- cgit v1.2.3