aboutsummaryrefslogtreecommitdiffstats
path: root/build.gradle
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 /build.gradle
parent66e50a74630b8c5a677502aa9b03343422e2dc50 (diff)
downloadsonarqube-4a1916621a67c1bbf45f41118787288a696a9a57.tar.gz
sonarqube-4a1916621a67c1bbf45f41118787288a696a9a57.zip
SONAR-17566 Drop jdk11 support for running the SonarQube server
Diffstat (limited to 'build.gradle')
-rw-r--r--build.gradle9
1 files changed, 4 insertions, 5 deletions
diff --git a/build.gradle b/build.gradle
index 2f61bf46e00..1dd8134b929 100644
--- a/build.gradle
+++ b/build.gradle
@@ -1,5 +1,7 @@
import groovy.json.JsonOutput
+import static org.gradle.api.JavaVersion.VERSION_17
+
plugins {
// Ordered alphabetically
id 'com.github.hierynomus.license' version '0.16.1'
@@ -13,8 +15,8 @@ plugins {
id 'org.sonarqube' version '3.5.0.2730'
}
-if (!JavaVersion.current().java11Compatible) {
- throw new GradleException("JDK 11+ is required to perform this build. It's currently " + System.getProperty("java.home") + ".")
+if (!JavaVersion.current().isCompatibleWith(VERSION_17)) {
+ throw new GradleException("JDK 17+ is required to perform this build. It's currently " + System.getProperty("java.home") + ".")
}
/**
@@ -146,9 +148,6 @@ 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"