diff options
Diffstat (limited to 'sonar-scanner-protocol/build.gradle')
-rw-r--r-- | sonar-scanner-protocol/build.gradle | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sonar-scanner-protocol/build.gradle b/sonar-scanner-protocol/build.gradle index 3e45afc6882..2413f3da74f 100644 --- a/sonar-scanner-protocol/build.gradle +++ b/sonar-scanner-protocol/build.gradle @@ -33,6 +33,11 @@ task fatJar(type: Jar) { build.dependsOn fatJar +// 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 { |