2023-07-03 13:00:27 +00:00
|
|
|
val ktor_version: String by project
|
|
|
|
val kotlin_version: String by project
|
|
|
|
val logback_version: String by project
|
2023-07-10 12:06:49 +00:00
|
|
|
val flyway_core_version: String by project
|
|
|
|
val postgresql_version: String by project
|
|
|
|
val hikariCP_version: String by project
|
|
|
|
val exposed_version: String by project
|
|
|
|
val testcontainers_postgresql_version: String by project
|
2023-07-10 13:57:23 +00:00
|
|
|
val junit_jupiter_version: String by project
|
2023-07-10 12:06:49 +00:00
|
|
|
|
2023-07-03 13:00:27 +00:00
|
|
|
|
2023-06-26 10:31:59 +00:00
|
|
|
plugins {
|
2023-07-03 13:00:27 +00:00
|
|
|
kotlin("jvm") version "1.8.22"
|
|
|
|
id("io.ktor.plugin") version "2.3.2"
|
2023-07-05 08:54:33 +00:00
|
|
|
kotlin("plugin.serialization") version "1.8.21"
|
2023-06-26 10:31:59 +00:00
|
|
|
}
|
|
|
|
|
2023-07-03 13:00:27 +00:00
|
|
|
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")
|
|
|
|
}
|
2023-06-26 10:31:59 +00:00
|
|
|
|
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
2023-07-03 13:00:27 +00:00
|
|
|
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")
|
2023-07-04 11:30:06 +00:00
|
|
|
implementation("io.ktor:ktor-server-cors:$ktor_version")
|
2023-07-04 13:56:01 +00:00
|
|
|
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")
|
2023-07-10 12:06:49 +00:00
|
|
|
implementation("org.flywaydb:flyway-core:$flyway_core_version")
|
|
|
|
implementation("org.postgresql:postgresql:$postgresql_version")
|
|
|
|
implementation("com.zaxxer:HikariCP:$hikariCP_version")
|
|
|
|
implementation("org.jetbrains.exposed:exposed-core:$exposed_version")
|
|
|
|
implementation("org.jetbrains.exposed:exposed-jdbc:$exposed_version")
|
|
|
|
implementation("org.jetbrains.exposed:exposed-java-time:$exposed_version")
|
2023-07-10 13:42:34 +00:00
|
|
|
implementation("io.ktor:ktor-server-cio:$ktor_version")
|
2023-07-10 12:06:49 +00:00
|
|
|
testImplementation("io.ktor:ktor-server-tests-jvm:$ktor_version")
|
|
|
|
testImplementation("org.jetbrains.kotlin:kotlin-test-junit:$kotlin_version")
|
|
|
|
testImplementation("org.testcontainers:postgresql:$testcontainers_postgresql_version")
|
2023-07-10 13:57:23 +00:00
|
|
|
testImplementation("org.junit.jupiter:junit-jupiter-api:$junit_jupiter_version")
|
|
|
|
testImplementation("org.junit.jupiter:junit-jupiter-params:$junit_jupiter_version")
|
|
|
|
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:$junit_jupiter_version")
|
|
|
|
}
|
|
|
|
|
|
|
|
tasks.named<Test>("test"){
|
|
|
|
useJUnitPlatform()
|
|
|
|
testLogging{
|
|
|
|
events("skipped", "failed")
|
|
|
|
}
|
2023-07-10 12:06:49 +00:00
|
|
|
}
|