-
Notifications
You must be signed in to change notification settings - Fork 480
/
build.gradle.kts
44 lines (35 loc) · 1.06 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
43
44
val ktor_version: String by project
val logback_version: String by project
plugins {
kotlin("jvm") version "1.8.0"
application
id("org.jetbrains.kotlin.plugin.serialization") version "1.8.22"
}
group = "moe.fuqiuluo"
version = "1.0.5"
repositories {
mavenCentral()
}
dependencies {
testImplementation(kotlin("test"))
implementation("io.ktor:ktor-server-content-negotiation-jvm:$ktor_version")
implementation("io.ktor:ktor-serialization-kotlinx-json-jvm:$ktor_version")
implementation("org.jetbrains.kotlinx:kotlinx-serialization-protobuf:1.3.3")
implementation("io.ktor:ktor-server-core-jvm:$ktor_version")
implementation("io.ktor:ktor-server-netty-jvm:$ktor_version")
implementation("ch.qos.logback:logback-classic:$logback_version")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.7.1")
implementation(fileTree(mapOf(
"dir" to "libs",
"include" to listOf("*.jar")
)))
}
tasks.test {
useJUnitPlatform()
}
kotlin {
jvmToolchain(8)
}
application {
mainClass.set("MainKt")
}