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