aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-testing-harness
diff options
context:
space:
mode:
Diffstat (limited to 'sonar-testing-harness')
-rw-r--r--sonar-testing-harness/build.gradle5
1 files changed, 5 insertions, 0 deletions
diff --git a/sonar-testing-harness/build.gradle b/sonar-testing-harness/build.gradle
index 7826c3bdba9..6c2d5ad32bf 100644
--- a/sonar-testing-harness/build.gradle
+++ b/sonar-testing-harness/build.gradle
@@ -19,6 +19,11 @@ dependencies {
compileOnlyApi '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
+}
+
artifactoryPublish.skip = false
publishing {
publications {