From c967c6045cd9f9281ef82fd92f2d610c06d0e4cb Mon Sep 17 00:00:00 2001 From: Andreas Schildbach Date: Thu, 29 Aug 2024 22:19:31 +0200 Subject: [PATCH] build.gradle: remove `sourceCompatibility`, `targetCompatibility` We have defined `release` one way or another, and on JDK 17 that should suffice. --- core/build.gradle | 2 -- examples-kotlin/build.gradle | 1 - examples/build.gradle | 1 - integration-test/build.gradle | 1 - tools/build.gradle | 1 - wallettemplate/build.gradle | 1 - wallettool/build.gradle | 1 - 7 files changed, 8 deletions(-) diff --git a/core/build.gradle b/core/build.gradle index 948d9b40f..f76d89289 100644 --- a/core/build.gradle +++ b/core/build.gradle @@ -37,8 +37,6 @@ if (GradleVersion.current().compareTo(gradleVersionTargetJVM) > 0) { } } -sourceCompatibility = 8 -targetCompatibility = 8 tasks.withType(JavaCompile) { options.compilerArgs.addAll(['--release', '8']) options.compilerArgs << '-Xlint:deprecation' diff --git a/examples-kotlin/build.gradle b/examples-kotlin/build.gradle index 9e4d74947..84a90c61b 100644 --- a/examples-kotlin/build.gradle +++ b/examples-kotlin/build.gradle @@ -11,7 +11,6 @@ compileKotlin { } } -sourceCompatibility = 17 tasks.withType(JavaCompile) { options.encoding = 'UTF-8' options.release = 17 diff --git a/examples/build.gradle b/examples/build.gradle index 1d0f47e8b..6f444972f 100644 --- a/examples/build.gradle +++ b/examples/build.gradle @@ -8,7 +8,6 @@ dependencies { implementation 'org.slf4j:slf4j-jdk14:2.0.13' } -sourceCompatibility = 17 tasks.withType(JavaCompile) { options.encoding = 'UTF-8' options.compilerArgs.addAll(['--release', '17']) diff --git a/integration-test/build.gradle b/integration-test/build.gradle index bf271f498..9bc47168e 100644 --- a/integration-test/build.gradle +++ b/integration-test/build.gradle @@ -18,7 +18,6 @@ dependencies { testRuntimeOnly "org.junit.vintage:junit-vintage-engine:5.10.3" } -sourceCompatibility = 17 tasks.withType(JavaCompile) { options.encoding = 'UTF-8' options.release = 17 diff --git a/tools/build.gradle b/tools/build.gradle index c5638f479..22ef32235 100644 --- a/tools/build.gradle +++ b/tools/build.gradle @@ -8,7 +8,6 @@ dependencies { implementation 'org.slf4j:slf4j-jdk14:2.0.13' } -sourceCompatibility = 17 tasks.withType(JavaCompile) { options.compilerArgs.addAll(['--release', '17']) options.compilerArgs << '-Xlint:deprecation' diff --git a/wallettemplate/build.gradle b/wallettemplate/build.gradle index c44f50906..7327f547a 100644 --- a/wallettemplate/build.gradle +++ b/wallettemplate/build.gradle @@ -20,7 +20,6 @@ javafx { modules = [ 'javafx.controls', 'javafx.fxml' ] } -sourceCompatibility = 17 tasks.withType(JavaCompile) { options.encoding = 'UTF-8' options.release = 17 diff --git a/wallettool/build.gradle b/wallettool/build.gradle index d87028d7c..d9ac022d4 100644 --- a/wallettool/build.gradle +++ b/wallettool/build.gradle @@ -31,7 +31,6 @@ dependencies { testImplementation 'org.slf4j:slf4j-jdk14:2.0.13' } -sourceCompatibility = 17 tasks.withType(JavaCompile) { options.compilerArgs.addAll(['--release', '17']) options.compilerArgs << '-Xlint:deprecation'