diff options
Diffstat (limited to 'sonar-plugin-api-impl/build.gradle')
-rw-r--r-- | sonar-plugin-api-impl/build.gradle | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sonar-plugin-api-impl/build.gradle b/sonar-plugin-api-impl/build.gradle index 3b9fde8eced..51480338d9d 100644 --- a/sonar-plugin-api-impl/build.gradle +++ b/sonar-plugin-api-impl/build.gradle @@ -34,6 +34,11 @@ processResources { artifactoryPublish.skip = false +// Produce Java 11 bytecode while making sure the code does not use any APIs from Java 17 +tasks.withType(JavaCompile) { + options.release = 11 +} + publishing { publications { mavenJava(MavenPublication) { |