-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
37 lines (30 loc) · 1.04 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
plugins {
java
application
// Plugin for jar file
id("com.github.johnrengelman.shadow") version "8.1.1"
// Plugin for java automated quality assurance
id("org.danilopianini.gradle-java-qa") version "1.28.0"
}
repositories {
mavenCentral()
}
val javaFXModules = listOf("base", "controls", "fxml", "swing", "graphics", "media")
val supportedPlatforms = listOf("linux", "mac", "win")
dependencies {
compileOnly("com.github.spotbugs:spotbugs-annotations:4.8.2")
val junitVersion = "5.9.2"
testImplementation("org.junit.jupiter:junit-jupiter-api:$junitVersion")
testImplementation("org.junit.jupiter:junit-jupiter-params:$junitVersion")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:$junitVersion")
implementation ("org.json:json:20231013")
val javaFxVersion = "15"
for (platform in supportedPlatforms) {
for (module in javaFXModules) {
implementation("org.openjfx:javafx-$module:$javaFxVersion:$platform")
}
}
}
application {
mainClass.set("tenten.App")
}