🏗️ Ktor Server lagt til

Co-authored-by: Amalie Erdal Mansaker <amalie.erdal.mansaker@nav.no>
Co-authored-by: Markus A. R. Johansen <markus.aleksander.rakil.johansen@nav.no>
This commit is contained in:
sindrekjelsrud 2023-07-03 15:00:27 +02:00
parent 941e2fe7ed
commit 1cb8e1713d
12 changed files with 195 additions and 114 deletions

View file

@ -1,27 +1,29 @@
val ktor_version: String by project
val kotlin_version: String by project
val logback_version: String by project
plugins {
kotlin("jvm") version "1.8.21"
application
kotlin("jvm") version "1.8.22"
id("io.ktor.plugin") version "2.3.2"
}
group = "org.example"
version = "1.0-SNAPSHOT"
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 {
testImplementation(kotlin("test"))
}
tasks.test {
useJUnitPlatform()
}
kotlin {
jvmToolchain(11)
}
application {
mainClass.set("MainKt")
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")
}