aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-core/build.gradle
diff options
context:
space:
mode:
Diffstat (limited to 'sonar-core/build.gradle')
-rw-r--r--sonar-core/build.gradle5
1 files changed, 5 insertions, 0 deletions
diff --git a/sonar-core/build.gradle b/sonar-core/build.gradle
index cd1c8250cf7..ded22c46c6f 100644
--- a/sonar-core/build.gradle
+++ b/sonar-core/build.gradle
@@ -37,6 +37,11 @@ dependencies {
testCompileOnly 'com.google.code.findbugs:jsr305'
}
+// Produce Java 11 bytecode while making sure the code does not use any APIs from Java 17
+tasks.withType(JavaCompile) {
+ options.release = 11
+}
+
// Used by sonar-db-core to run DB Unit Tests
artifactoryPublish.skip = false
publishing {