aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--build.gradle17
1 files changed, 2 insertions, 15 deletions
diff --git a/build.gradle b/build.gradle
index 3c6c313..e6d9f0e 100644
--- a/build.gradle
+++ b/build.gradle
@@ -106,22 +106,9 @@ processResources {
java {
withSourcesJar()
withJavadocJar()
-}
-allprojects {
- plugins.withId('java') { // when the java plugin is applied in the project
- java {
- // Use Java 17 toolchain if running on older version of Java, but allow newer versions
- if (!JavaVersion.current().isCompatibleWith(JavaVersion.VERSION_17)) {
- toolchain {
- languageVersion = JavaLanguageVersion.of(17)
- }
- } else {
- sourceCompatibility = JavaVersion.VERSION_17
- targetCompatibility = JavaVersion.VERSION_17
- }
- }
- }
+ sourceCompatibility = JavaVersion.VERSION_17
+ targetCompatibility = JavaVersion.VERSION_17
}
tasks.withType(JavaCompile) {