-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
45 lines (37 loc) · 984 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
plugins {
kotlin("jvm") version "1.8.0"
id("org.openjfx.javafxplugin") version "0.0.13"
}
group = "pink.cyan"
version = "1.0-SNAPSHOT"
repositories {
mavenCentral()
}
javafx {
version = "20"
modules("javafx.controls", "javafx.fxml")
}
val ktor_version: String by project
dependencies {
testImplementation(kotlin("test"))
implementation("io.ktor:ktor-client-core:$ktor_version")
implementation("io.ktor:ktor-client-cio:$ktor_version")
implementation("io.ktor:ktor-client-websockets:$ktor_version")
implementation("com.google.code.gson:gson:2.10.1")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-javafx:1.6.4")
}
tasks.test {
useJUnitPlatform()
}
tasks.jar {
manifest {
attributes["Main-Class"] = "MainKt"
}
configurations["compileClasspath"].forEach { file: File ->
from(zipTree(file.absoluteFile))
}
duplicatesStrategy = DuplicatesStrategy.INCLUDE
}
kotlin {
jvmToolchain(11)
}