From: Matteo Mara Date: Fri, 1 Dec 2023 09:43:13 +0000 (+0100) Subject: SONAR-21157 Drop support for running the scanners with Java 11 X-Git-Tag: 10.4.0.87286~376 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=5f969fa44d41023d4411a4d8c3e0dc14e915ba27;p=sonarqube.git SONAR-21157 Drop support for running the scanners with Java 11 --- diff --git a/plugins/sonar-xoo-plugin/build.gradle b/plugins/sonar-xoo-plugin/build.gradle index a152bff4d29..d3330473874 100644 --- a/plugins/sonar-xoo-plugin/build.gradle +++ b/plugins/sonar-xoo-plugin/build.gradle @@ -34,11 +34,6 @@ jar { 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) { diff --git a/sonar-core/build.gradle b/sonar-core/build.gradle index 8f8abccb27a..0a7ac004a70 100644 --- a/sonar-core/build.gradle +++ b/sonar-core/build.gradle @@ -40,11 +40,6 @@ dependencies { testCompileOnly '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 -} - // Used by sonar-db-core to run DB Unit Tests artifactoryPublish.skip = false publishing { diff --git a/sonar-duplications/build.gradle b/sonar-duplications/build.gradle index 351b5c922f7..d3c65d720b2 100644 --- a/sonar-duplications/build.gradle +++ b/sonar-duplications/build.gradle @@ -19,8 +19,3 @@ 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 -} diff --git a/sonar-markdown/build.gradle b/sonar-markdown/build.gradle index 7bd7025a437..714a4651345 100644 --- a/sonar-markdown/build.gradle +++ b/sonar-markdown/build.gradle @@ -17,11 +17,6 @@ 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) { diff --git a/sonar-plugin-api-impl/build.gradle b/sonar-plugin-api-impl/build.gradle index 92bf8a3e6c9..3c1f5be70b9 100644 --- a/sonar-plugin-api-impl/build.gradle +++ b/sonar-plugin-api-impl/build.gradle @@ -35,11 +35,6 @@ 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) { diff --git a/sonar-scanner-engine/build.gradle b/sonar-scanner-engine/build.gradle index 093f996a9c4..1e29e7f0400 100644 --- a/sonar-scanner-engine/build.gradle +++ b/sonar-scanner-engine/build.gradle @@ -67,11 +67,6 @@ license { 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 -} - // Used by core plugins publishing { publications { diff --git a/sonar-scanner-protocol/build.gradle b/sonar-scanner-protocol/build.gradle index 2413f3da74f..3e45afc6882 100644 --- a/sonar-scanner-protocol/build.gradle +++ b/sonar-scanner-protocol/build.gradle @@ -33,11 +33,6 @@ 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 { diff --git a/sonar-testing-harness/build.gradle b/sonar-testing-harness/build.gradle index 6c2d5ad32bf..7826c3bdba9 100644 --- a/sonar-testing-harness/build.gradle +++ b/sonar-testing-harness/build.gradle @@ -19,11 +19,6 @@ 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 { diff --git a/sonar-ws/build.gradle b/sonar-ws/build.gradle index bd8cecda19c..d9db37e3bf4 100644 --- a/sonar-ws/build.gradle +++ b/sonar-ws/build.gradle @@ -39,11 +39,6 @@ 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) {