From 0ed6c52ead7e40b6c5bcaf685293d22803cec645 Mon Sep 17 00:00:00 2001 From: dankito Date: Fri, 13 Nov 2020 03:05:45 +0100 Subject: [PATCH] Added some other options to ensure Java 8 is used --- EpcQrCodeJavaFxApp/build.gradle.kts | 23 +++++++++++++++++------ 1 file changed, 17 insertions(+), 6 deletions(-) diff --git a/EpcQrCodeJavaFxApp/build.gradle.kts b/EpcQrCodeJavaFxApp/build.gradle.kts index b65d86b..c98fb6c 100644 --- a/EpcQrCodeJavaFxApp/build.gradle.kts +++ b/EpcQrCodeJavaFxApp/build.gradle.kts @@ -10,12 +10,14 @@ group = "net.codinux.banking.epcqrcode.javafx" val mainClassName = "net.codinux.banking.epcqrcode.EpcQrCodeJavaFxAppKt" -dependencies { - implementation(project(":EpcQrCode")) - - implementation("net.dankito.utils:java-fx-utils:1.0.8") +val compileKotlin: KotlinCompile by tasks +compileKotlin.kotlinOptions { + jvmTarget = "1.8" +} +val compileTestKotlin: KotlinCompile by tasks +compileTestKotlin.kotlinOptions { + jvmTarget = "1.8" } - java { sourceCompatibility = JavaVersion.VERSION_1_8 @@ -26,12 +28,21 @@ tasks.withType() { kotlinOptions.jvmTarget = "1.8" } + +dependencies { + implementation(kotlin("stdlib-jdk8")) + + implementation(project(":EpcQrCode")) + + implementation("net.dankito.utils:java-fx-utils:1.0.8") +} + + application { mainClassName = mainClassName } - tasks.withType { isZip64 = true