[+] Add kotlin support
This commit is contained in:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user