[Editor] Install TornadoFX module
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
plugins {
|
||||
id 'org.jetbrains.kotlin.jvm' version '1.4.10'
|
||||
id 'org.openjfx.javafxplugin' version '0.0.8'
|
||||
id 'idea'
|
||||
}
|
||||
|
||||
group 'com.bartlomiejpluta.base'
|
||||
@@ -13,6 +15,22 @@ sourceSets {
|
||||
main.kotlin.srcDirs += 'src/main/kotlin'
|
||||
}
|
||||
|
||||
javafx {
|
||||
version = "11.0.2"
|
||||
modules = ['javafx.controls', 'javafx.graphics']
|
||||
}
|
||||
|
||||
|
||||
|
||||
compileKotlin {
|
||||
kotlinOptions.jvmTarget = "14"
|
||||
}
|
||||
|
||||
compileTestKotlin {
|
||||
kotlinOptions.jvmTarget = "14"
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation "org.jetbrains.kotlin:kotlin-stdlib"
|
||||
implementation "no.tornado:tornadofx:${tornadoFxVersion}"
|
||||
}
|
||||
|
||||
@@ -1,5 +1,17 @@
|
||||
package com.bartlomiejpluta.base.editor
|
||||
|
||||
import tornadofx.*
|
||||
|
||||
|
||||
class MyView : View() {
|
||||
override val root = vbox {
|
||||
button("Press me")
|
||||
label("Waiting")
|
||||
}
|
||||
}
|
||||
|
||||
class EditorApp : App(MyView::class)
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
println("Hello, world!")
|
||||
launch<EditorApp>(args)
|
||||
}
|
||||
@@ -3,3 +3,4 @@ springBootVersion=2.4.2
|
||||
springDependencyManagementVersion=1.0.11.RELEASE
|
||||
jomlVersion=1.10.0
|
||||
guavaVersion=29.0-jre
|
||||
tornadoFxVersion=1.7.20
|
||||
|
||||
Reference in New Issue
Block a user