aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/sonar-xoo-plugin
diff options
context:
space:
mode:
authorMatteo Mara <matteo.mara@sonarsource.com>2022-12-21 10:30:51 +0100
committersonartech <sonartech@sonarsource.com>2022-12-29 20:03:07 +0000
commit4a1916621a67c1bbf45f41118787288a696a9a57 (patch)
treeec14b6131be86de6dee6ef59e5f147896f49020c /plugins/sonar-xoo-plugin
parent66e50a74630b8c5a677502aa9b03343422e2dc50 (diff)
downloadsonarqube-4a1916621a67c1bbf45f41118787288a696a9a57.tar.gz
sonarqube-4a1916621a67c1bbf45f41118787288a696a9a57.zip
SONAR-17566 Drop jdk11 support for running the SonarQube server
Diffstat (limited to 'plugins/sonar-xoo-plugin')
-rw-r--r--plugins/sonar-xoo-plugin/build.gradle5
1 files changed, 5 insertions, 0 deletions
diff --git a/plugins/sonar-xoo-plugin/build.gradle b/plugins/sonar-xoo-plugin/build.gradle
index 95e4dc3acc4..62af71aa40c 100644
--- a/plugins/sonar-xoo-plugin/build.gradle
+++ b/plugins/sonar-xoo-plugin/build.gradle
@@ -33,6 +33,11 @@ jar {
artifactoryPublish.skip = false
+// Produce Java 11 bytecode while making sure the code does not use any APIs from Java 17
+tasks.withType(JavaCompile) {
+ options.release = 11
+}
+
publishing {
publications {
mavenJava(MavenPublication) {