-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
48 lines (38 loc) · 939 Bytes
/
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
plugins {
kotlin("jvm") version "1.9.24"
id("org.openjfx.javafxplugin") version "0.1.0"
id("com.github.johnrengelman.shadow") version "8.1.1"
application
}
group = "com.spoiligaming"
version = "1.0.0"
repositories {
mavenCentral()
}
dependencies {
implementation(kotlin("stdlib"))
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-javafx:1.8.1")
testImplementation(kotlin("test"))
}
javafx {
version = "11"
modules("javafx.controls", "javafx.graphics", "javafx.base")
}
tasks.test {
useJUnitPlatform()
}
val mainFunctionLocation = "com.spoiligaming.loader.MainKt"
tasks.shadowJar {
mergeServiceFiles()
duplicatesStrategy = DuplicatesStrategy.FAIL
archiveFileName.set("LoadingSimulator-$version.jar")
manifest {
attributes["Main-Class"] = mainFunctionLocation
}
}
application {
mainClass.set(mainFunctionLocation)
}
kotlin {
jvmToolchain(11)
}