diff options
author | 2023-04-15 19:33:07 +0200 | |
---|---|---|
committer | 2023-04-15 19:33:07 +0200 | |
commit | 2731c799e31d19a801142cd99460da45ae2e368f (patch) | |
tree | 5e494210972630bd37f4d61b1c9f1dcadb0cd80f /buildSrc/src/main/kotlin | |
parent | refactor: remove virtual thread support (diff) | |
download | refinery-2731c799e31d19a801142cd99460da45ae2e368f.tar.gz refinery-2731c799e31d19a801142cd99460da45ae2e368f.tar.zst refinery-2731c799e31d19a801142cd99460da45ae2e368f.zip |
chore(deps): downgrade to Java 17
Java 19 is out of support, but Gradle current does not run on Java 20:
https://github.com/gradle/gradle/issues/23488
To avoid the complexity of running the build tool on a different JDK than the
application, we temporarily remove code that depends on experimental Java 19 or
Java 20 features.
Revert once the build can run on Java 20.
Diffstat (limited to 'buildSrc/src/main/kotlin')
-rw-r--r-- | buildSrc/src/main/kotlin/tools/refinery/gradle/internal/java-conventions.gradle.kts | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/buildSrc/src/main/kotlin/tools/refinery/gradle/internal/java-conventions.gradle.kts b/buildSrc/src/main/kotlin/tools/refinery/gradle/internal/java-conventions.gradle.kts index d8deffae..7c7cbabd 100644 --- a/buildSrc/src/main/kotlin/tools/refinery/gradle/internal/java-conventions.gradle.kts +++ b/buildSrc/src/main/kotlin/tools/refinery/gradle/internal/java-conventions.gradle.kts | |||
@@ -43,14 +43,10 @@ dependencies { | |||
43 | } | 43 | } |
44 | 44 | ||
45 | java.toolchain { | 45 | java.toolchain { |
46 | languageVersion.set(JavaLanguageVersion.of(19)) | 46 | languageVersion.set(JavaLanguageVersion.of(17)) |
47 | } | 47 | } |
48 | 48 | ||
49 | tasks { | 49 | tasks { |
50 | withType(JavaCompile::class) { | ||
51 | options.release.set(17) | ||
52 | } | ||
53 | |||
54 | test { | 50 | test { |
55 | useJUnitPlatform { | 51 | useJUnitPlatform { |
56 | excludeTags("slow") | 52 | excludeTags("slow") |