-
Notifications
You must be signed in to change notification settings - Fork 6
/
build.gradle.kts
44 lines (36 loc) · 1.46 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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
val ktorVersion = "2.3.6"
val mockkVersion = "1.13.8"
plugins {
application
kotlin("jvm") version "1.9.20"
}
java.sourceCompatibility = JavaVersion.VERSION_17
group = "no.bekk"
version = "1.0-SNAPSHOT"
repositories {
maven(url = "https://dl.bintray.com/kotlin/ktor")
mavenCentral()
}
sourceSets["main"].java.srcDir("src/main/kotlin")
sourceSets["test"].java.srcDir("src/main/test")
dependencies {
implementation(kotlin("stdlib"))
implementation("junit:junit:4.13.2")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.7.3")
implementation("io.ktor:ktor-server-netty-jvm:$ktorVersion")
implementation("io.ktor:ktor-client-apache-jvm:$ktorVersion")
implementation("io.ktor:ktor-server-content-negotiation:$ktorVersion")
implementation("io.ktor:ktor-client-content-negotiation:$ktorVersion")
implementation("io.ktor:ktor-client-jackson-jvm:$ktorVersion")
implementation("io.ktor:ktor-server-locations-jvm:$ktorVersion")
implementation("io.ktor:ktor-serialization-jackson:$ktorVersion")
implementation("com.h2database:h2:2.2.224")
implementation("com.zaxxer:HikariCP:5.1.0")
implementation("com.fasterxml.jackson.module:jackson-module-kotlin:2.16.0")
implementation("ch.qos.logback:logback-classic:1.2.11")
}
tasks.withType<KotlinCompile> {
kotlinOptions.jvmTarget = "17"
kotlinOptions.freeCompilerArgs += listOf("-XXLanguage:+InlineClasses")
}