-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
53 lines (43 loc) · 1.43 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
45
46
47
48
49
50
51
52
53
plugins {
application
kotlin("jvm") version "1.6.0"
kotlin("plugin.serialization") version "1.6.0"
id("com.github.johnrengelman.shadow") version "7.1.0"
id("org.jlleitschuh.gradle.ktlint") version "10.2.0"
java
}
group = "info.mycityreport"
version = "0.0.1"
repositories {
mavenCentral()
}
val kotlinVersion = "1.6.0"
val ktorVersion = "1.6.6"
dependencies {
implementation("org.jetbrains.kotlin:kotlin-stdlib:$kotlinVersion")
implementation("io.ktor:ktor-server-core:$ktorVersion")
implementation("io.ktor:ktor-server-netty:$ktorVersion")
implementation("io.ktor:ktor-serialization:$ktorVersion")
implementation("ch.qos.logback:logback-classic:1.2.7")
implementation("io.ktor:ktor-client-core:$ktorVersion")
implementation("io.ktor:ktor-client-cio:$ktorVersion")
implementation("org.kodein.di:kodein-di-framework-ktor-server-jvm:7.9.0")
testImplementation("io.ktor:ktor-server-test-host:$ktorVersion")
testImplementation("org.jetbrains.kotlin:kotlin-test:$kotlinVersion")
testImplementation("org.junit.jupiter:junit-jupiter-api:5.8.2")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.8.2")
}
application {
mainClass.set("io.ktor.server.netty.EngineMain")
}
tasks.getByName<Test>("test") {
useJUnitPlatform()
}
tasks {
compileKotlin {
kotlinOptions.jvmTarget = "17"
}
compileTestKotlin {
kotlinOptions.jvmTarget = "17"
}
}