forked from HoshinoTented/PaintBoardServer
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle.kts
41 lines (35 loc) · 1.08 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
plugins {
kotlin("jvm") version "1.3.61"
application
}
application {
mainClassName = "org.hoshino9.luogu.paintboard.server.ApplicationKt"
}
group = "org.example"
version = "1.0-SNAPSHOT"
val kotlinVersion: String by extra
val ktorVersion: String by extra
repositories {
maven("https://maven.aliyun.com/repository/public")
mavenCentral()
}
dependencies {
implementation(kotlin("stdlib-jdk8"))
implementation("io.ktor:ktor-server-netty:$ktorVersion")
implementation("ch.qos.logback:logback-classic:1.2.1")
implementation("io.ktor:ktor-client-core:$ktorVersion")
implementation("io.ktor:ktor-client-gson:$ktorVersion")
implementation("io.ktor:ktor-client-core-jvm:$ktorVersion")
implementation("io.ktor:ktor-client-okhttp:$ktorVersion")
implementation("io.ktor:ktor-websockets:$ktorVersion")
implementation("io.ktor:ktor-client-websockets:$ktorVersion")
implementation("redis.clients:jedis:3.2.0")
}
tasks {
compileKotlin {
kotlinOptions.jvmTarget = "1.8"
}
compileTestKotlin {
kotlinOptions.jvmTarget = "1.8"
}
}