e49bce0470
Co-authored-by: Sindre Kjelsrud <sindre.kjelsrud@nav.no> Co-authored-by: Markus A. R. Johansen <markus.aleksander.rakil.johansen@nav.no>
36 lines
No EOL
1.2 KiB
Text
36 lines
No EOL
1.2 KiB
Text
val ktor_version: String by project
|
|
val kotlin_version: String by project
|
|
val logback_version: String by project
|
|
|
|
plugins {
|
|
kotlin("jvm") version "1.8.22"
|
|
id("io.ktor.plugin") version "2.3.2"
|
|
kotlin("plugin.serialization") version "1.8.21"
|
|
|
|
}
|
|
|
|
group = "no.nav.helse.sprik"
|
|
version = "0.0.1"
|
|
application {
|
|
mainClass.set("no.nav.helse.sprik.ApplicationKt")
|
|
|
|
val isDevelopment: Boolean = project.ext.has("development")
|
|
applicationDefaultJvmArgs = listOf("-Dio.ktor.development=$isDevelopment")
|
|
}
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
|
|
dependencies {
|
|
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")
|
|
testImplementation("io.ktor:ktor-server-tests-jvm:$ktor_version")
|
|
testImplementation("org.jetbrains.kotlin:kotlin-test-junit:$kotlin_version")
|
|
implementation("io.ktor:ktor-server-cors:$ktor_version")
|
|
implementation("io.ktor:ktor-utils:$ktor_version")
|
|
implementation("io.ktor:ktor-serialization-kotlinx-json:$ktor_version")
|
|
implementation("io.ktor:ktor-server-content-negotiation:$ktor_version")
|
|
implementation("io.ktor:ktor-client-content-negotiation:$ktor_version")
|
|
} |