aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-duplications
diff options
context:
space:
mode:
Diffstat (limited to 'sonar-duplications')
-rw-r--r--sonar-duplications/build.gradle5
1 files changed, 5 insertions, 0 deletions
diff --git a/sonar-duplications/build.gradle b/sonar-duplications/build.gradle
index d3c65d720b2..351b5c922f7 100644
--- a/sonar-duplications/build.gradle
+++ b/sonar-duplications/build.gradle
@@ -19,3 +19,8 @@ dependencies {
testImplementation 'org.hamcrest:hamcrest-core'
testImplementation 'org.mockito:mockito-core'
}
+
+// Produce Java 11 bytecode while making sure the code does not use any APIs from Java 17
+tasks.withType(JavaCompile) {
+ options.release = 11
+}