Use OpenJFX JavaFX for compatibility with modern JREs

This commit is contained in:
Daniel Wolf 2021-06-18 17:58:03 +02:00
parent dda889d6ed
commit 9476931334
1 changed files with 8 additions and 1 deletions

View File

@ -3,6 +3,7 @@ import java.io.File
plugins { plugins {
kotlin("jvm") version "1.3.41" kotlin("jvm") version "1.3.41"
id("org.openjfx.javafxplugin") version "0.0.10"
} }
fun getVersion(): String { fun getVersion(): String {
@ -22,17 +23,23 @@ version = getVersion()
repositories { repositories {
mavenCentral() mavenCentral()
jcenter() jcenter()
maven("https://oss.sonatype.org/content/repositories/snapshots")
} }
dependencies { dependencies {
implementation(kotlin("stdlib-jdk8")) implementation(kotlin("stdlib-jdk8"))
implementation("com.beust:klaxon:5.0.1") implementation("com.beust:klaxon:5.0.1")
implementation("org.apache.commons:commons-lang3:3.9") implementation("org.apache.commons:commons-lang3:3.9")
implementation("no.tornado:tornadofx:1.7.19") implementation("no.tornado:tornadofx:2.0.0-SNAPSHOT")
testImplementation("org.junit.jupiter:junit-jupiter:5.5.0") testImplementation("org.junit.jupiter:junit-jupiter:5.5.0")
testCompile("org.assertj:assertj-core:3.11.1") testCompile("org.assertj:assertj-core:3.11.1")
} }
javafx {
version = "15.0.1"
modules("javafx.controls")
}
tasks.withType<KotlinCompile> { tasks.withType<KotlinCompile> {
kotlinOptions.jvmTarget = "1.8" kotlinOptions.jvmTarget = "1.8"
} }