-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
42 lines (39 loc) · 1.05 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
// Declaration of the Gradle extension to use
plugins {
java
application
id("com.github.johnrengelman.shadow") version "5.2.0"
}
repositories {
jcenter() // Contains the whole Maven Central
}
// List of JavaFX modules
val javaFXModules = listOf(
"base",
"controls",
"fxml",
"swing",
"graphics"
)
// All required for OOP
val supportedPlatforms = listOf("linux", "mac", "win")
dependencies {
//JavaFX dependency
for (platform in supportedPlatforms) {
for (module in javaFXModules) {
implementation("org.openjfx:javafx-$module:13:$platform")
}
}
// JUnit API and testing engine
testImplementation("org.junit.jupiter:junit-jupiter-api:5.5.2")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.5.2")
testCompile("junit:junit:4.12")
testRuntime("org.junit.vintage:junit-vintage-engine:5.3.1")
}
tasks.withType<Test> {
// Enables JUnit 5 Jupiter module
useJUnitPlatform()
}
application {
mainClassName = "view.Launcher"
}