generated from navikt/tms-ktor-template
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle.kts
87 lines (77 loc) · 2.67 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
import org.gradle.api.tasks.testing.logging.TestExceptionFormat
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
kotlin("jvm").version(Kotlin.version)
id(Shadow.pluginId) version (Shadow.version)
application
}
kotlin {
jvmToolchain {
languageVersion.set(JavaLanguageVersion.of(17))
}
}
repositories {
mavenCentral()
maven {
url = uri("https://github-package-registry-mirror.gc.nav.no/cached/maven-release")
}
mavenLocal()
}
dependencies {
implementation(Caffeine.caffeine)
implementation(JacksonDatatype.datatypeJsr310)
implementation(JacksonDatatype.moduleKotlin)
implementation(Kotlinx.coroutines)
implementation(KotlinLogging.logging)
implementation(Ktor.Server.core)
implementation(Ktor.Server.netty)
implementation(Ktor.Server.auth)
implementation(Ktor.Server.authJwt)
implementation(Ktor.Server.defaultHeaders)
implementation(Ktor.Server.cors)
implementation(Ktor.Server.metricsMicrometer)
implementation(Ktor.Server.statusPages)
implementation(Ktor.Client.core)
implementation(Ktor.Client.apache)
implementation(Ktor.Client.contentNegotiation)
implementation(Ktor.Serialization.jackson)
implementation(Ktor.Server.contentNegotiation)
implementation(TmsKtorTokenSupport.tokendingsExchange)
implementation(TmsKtorTokenSupport.idportenSidecar)
implementation(TmsKtorTokenSupport.azureExchange)
implementation(TmsKtorTokenSupport.tokenXValidation)
implementation(Logstash.logbackEncoder)
implementation(Micrometer.registryPrometheus)
implementation(Prometheus.common)
implementation(Prometheus.hotspot)
implementation(Prometheus.logback)
implementation(TmsCommonLib.metrics)
implementation(TmsCommonLib.utils)
implementation(TmsCommonLib.observability)
implementation(Unleash.clientJava)
testImplementation(Junit.api)
testImplementation(Ktor.Test.clientMock)
testImplementation(Ktor.Test.serverTestHost)
testImplementation(Kotest.assertionsCore)
testImplementation(KotlinTest.junit)
testRuntimeOnly(Jjwt.impl)
testRuntimeOnly(Junit.engine)
testImplementation(Junit.params)
testImplementation(Jjwt.api)
testImplementation(Mockk.mockk)
testImplementation(TmsKtorTokenSupport.idportenSidecarMock)
testImplementation(TmsKtorTokenSupport.tokenXValidationMock)
testImplementation(TmsCommonLib.testutils)
}
application {
mainClass.set("no.nav.tms.min.side.proxy.ApplicationKt")
}
tasks {
withType<Test> {
useJUnitPlatform()
testLogging {
exceptionFormat = TestExceptionFormat.FULL
events("passed", "skipped", "failed")
}
}
}