-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
51 lines (43 loc) · 1.73 KB
/
build.gradle.kts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
plugins {
id("java")
id("org.openjfx.javafxplugin") version "0.1.0"
id("application")
id("com.github.mrsarm.jshell.plugin") version "1.2.1"
id("com.gradleup.shadow") version "9.0.0-beta6"
}
group = "average.ftc"
version = "1.0-SNAPSHOT"
repositories {
mavenCentral()
}
// If you plan to run the JavaFX application, add the necessary JavaFX configurations
javafx {
version = "23.0.1" // Ensure the JavaFX version is compatible
modules = listOf("javafx.controls", "javafx.fxml", "javafx.media", "javafx.graphics") // Add necessary JavaFX modules
}
dependencies {
testImplementation(platform("org.junit:junit-bom:5.10.0"))
testImplementation("org.junit.jupiter:junit-jupiter")
implementation("org.openjfx:javafx-controls:23.0.1") // Update to the latest version if needed
implementation("org.openjfx:javafx-fxml:23.0.1") // Update to the latest version if needed
implementation("org.openjfx:javafx-media:23.0.1")
implementation("org.openjfx:javafx-graphics:23.0.1")
// implementation("com.fasterxml.jackson.core:jackson-core:2.18.2")
implementation("com.fasterxml.jackson.core:jackson-databind:2.18.2")
testRuntimeOnly("org.junit.platform:junit-platform-launcher") // https://stackoverflow.com/questions/77579350/how-do-i-get-rid-of-automatic-loading-of-test-framework-implementation-dependen
}
application {
mainClass.set("average.ftc.Main") // Adjust to your main class
// mainClass.set("average.ftc.AStarAlgoTest") // Adjust to your main class
}
tasks.named<JavaExec>("run") {
standardInput = System.`in`
}
tasks.test {
useJUnitPlatform()
}
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(23))
}
}