diff --git a/build.gradle b/build.gradle index b2eeba6..a06d4de 100644 --- a/build.gradle +++ b/build.gradle @@ -1,6 +1,8 @@ plugins { // Apply the application plugin to add support for building a CLI application in Java. id 'application' + id "org.jetbrains.kotlin.jvm" version "1.7.21" + id "org.openjfx.javafxplugin" version "0.0.13" } repositories { @@ -13,6 +15,11 @@ dependencies { implementation 'com.google.guava:guava:31.0.1-jre' } +javafx { + version = "11.0.2" + modules = ['javafx.controls', 'javafx.graphics'] +} + testing { suites { // Configure the built-in test suite @@ -23,6 +30,14 @@ testing { } } +compileKotlin { + kotlinOptions.jvmTarget = "11" +} + +compileTestKotlin { + kotlinOptions.jvmTarget = "11" +} + application { // Define the main class for the application. mainClass = 'Mars'