aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-markdown/build.gradle
diff options
context:
space:
mode:
Diffstat (limited to 'sonar-markdown/build.gradle')
-rw-r--r--sonar-markdown/build.gradle5
1 files changed, 5 insertions, 0 deletions
diff --git a/sonar-markdown/build.gradle b/sonar-markdown/build.gradle
index 714a4651345..7bd7025a437 100644
--- a/sonar-markdown/build.gradle
+++ b/sonar-markdown/build.gradle
@@ -17,6 +17,11 @@ dependencies {
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) {