-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
53 lines (45 loc) · 1.03 KB
/
build.gradle.kts
File metadata and controls
53 lines (45 loc) · 1.03 KB
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
52
53
plugins {
kotlin("jvm") version "2.3.0"
id("java")
id("org.openjfx.javafxplugin") version "0.1.0"
id("com.github.johnrengelman.shadow") version "8.1.1"
}
repositories {
mavenCentral()
}
dependencies {
testImplementation(kotlin("test"))
implementation("org.jetbrains.kotlin:kotlin-stdlib")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.7.1")
}
tasks.test {
useJUnitPlatform()
}
kotlin {
jvmToolchain(21)
}
javafx {
version = "21.0.3"
modules = listOf("javafx.controls", "javafx.graphics", "javafx.swing")
}
group = "org.lewapnoob.LewapEngine"
val MainClass = "org.lewapnoob.LewapEngine.MainKt"
tasks {
shadowJar {
archiveFileName.set("LewapEngine.jar")
mergeServiceFiles()
manifest {
attributes["Main-Class"] = MainClass
}
}
}
tasks.withType<Jar> {
manifest {
attributes["Main-Class"] = MainClass
}
}
tasks.jar {
archiveBaseName.set("LewapEngine_RAW")
archiveVersion.set("")
archiveClassifier.set("")
}