From 6b9c98edc5c1ac031ced8503fea36a8af5af53f9 Mon Sep 17 00:00:00 2001 From: Yair Morgenstern Date: Mon, 12 Feb 2024 00:49:08 +0200 Subject: [PATCH] Compile to jre 8 target (#11122) * Allow Java 8 to run this seamlessly, because really, why not? Resolves #11121 Resolves #11074 * Apparently * Correct version-to-string --- core/build.gradle.kts | 4 ++-- desktop/build.gradle.kts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/core/build.gradle.kts b/core/build.gradle.kts index b59263c165..c8060df98c 100644 --- a/core/build.gradle.kts +++ b/core/build.gradle.kts @@ -14,10 +14,10 @@ kotlin { target { compilations.all { - kotlinOptions.jvmTarget = JavaVersion.VERSION_11.majorVersion + kotlinOptions.jvmTarget = JavaVersion.VERSION_1_8.toString() } } } java { - targetCompatibility = JavaVersion.VERSION_11 + targetCompatibility = JavaVersion.VERSION_1_8 } diff --git a/desktop/build.gradle.kts b/desktop/build.gradle.kts index 1eab8f0310..e99cf3e7f4 100644 --- a/desktop/build.gradle.kts +++ b/desktop/build.gradle.kts @@ -17,12 +17,12 @@ kotlin { target { compilations.all { - kotlinOptions.jvmTarget = JavaVersion.VERSION_11.majorVersion + kotlinOptions.jvmTarget = JavaVersion.VERSION_1_8.toString() } } } java { - targetCompatibility = JavaVersion.VERSION_11 + targetCompatibility = JavaVersion.VERSION_1_8 } dependencies {