[+] Add kotlin support

This commit is contained in:
Hykilpikonna
2022-11-10 13:49:24 -05:00
parent 64d4d49bdb
commit bf2adcf262
+15
View File
@@ -1,6 +1,8 @@
plugins { plugins {
// Apply the application plugin to add support for building a CLI application in Java. // Apply the application plugin to add support for building a CLI application in Java.
id 'application' id 'application'
id "org.jetbrains.kotlin.jvm" version "1.7.21"
id "org.openjfx.javafxplugin" version "0.0.13"
} }
repositories { repositories {
@@ -13,6 +15,11 @@ dependencies {
implementation 'com.google.guava:guava:31.0.1-jre' implementation 'com.google.guava:guava:31.0.1-jre'
} }
javafx {
version = "11.0.2"
modules = ['javafx.controls', 'javafx.graphics']
}
testing { testing {
suites { suites {
// Configure the built-in test suite // Configure the built-in test suite
@@ -23,6 +30,14 @@ testing {
} }
} }
compileKotlin {
kotlinOptions.jvmTarget = "11"
}
compileTestKotlin {
kotlinOptions.jvmTarget = "11"
}
application { application {
// Define the main class for the application. // Define the main class for the application.
mainClass = 'Mars' mainClass = 'Mars'