Skip to content

Instantly share code, notes, and snippets.

@deggers
Created April 16, 2020 12:08
Show Gist options
  • Save deggers/f1649eff6c3ad75f37123bd9924cc2cd to your computer and use it in GitHub Desktop.
Save deggers/f1649eff6c3ad75f37123bd9924cc2cd to your computer and use it in GitHub Desktop.
To
plugins {
kotlin("jvm") version "1.3.61"
id("application")
id("org.openjfx.javafxplugin") version "0.0.8"
}
javafx {
// Declare the javafx modules we need to use
version = "13.0.2"
modules = mutableListOf("javafx.controls", "javafx.graphics")
}
application {
mainClassName = "your.full.path.filename"
}
group = "org.example"
version = "1.0-SNAPSHOT"
repositories {
mavenCentral()
maven { setUrl("https://oss.sonatype.org/content/repositories/snapshots") }
}
dependencies {
implementation(kotlin("stdlib-jdk8"))
implementation("no.tornado:tornadofx:2.0.0-SNAPSHOT")
}
tasks {
compileKotlin {
kotlinOptions.jvmTarget = "11"
}
compileTestKotlin {
kotlinOptions.jvmTarget = "11"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment