-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
102 lines (92 loc) · 4.06 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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
import com.expediagroup.graphql.plugin.gradle.config.GraphQLSerializer
import com.expediagroup.graphql.plugin.gradle.graphql
import org.gradle.api.tasks.testing.logging.TestExceptionFormat
plugins {
val kotlinVersion = "2.1.0"
val shadowVersion = "8.1.1"
val versionsVersion = "0.52.0"
val graphqlVersion = "8.2.1"
kotlin("jvm") version kotlinVersion
kotlin("plugin.allopen") version kotlinVersion
kotlin("plugin.serialization") version kotlinVersion
id("com.expediagroup.graphql") version graphqlVersion
id("com.github.johnrengelman.shadow") version shadowVersion
id("com.github.ben-manes.versions") version versionsVersion // ./gradlew dependencyUpdates to check for new versions
application
}
kotlin {
jvmToolchain(21)
}
repositories {
mavenCentral()
maven("https://jitpack.io")
maven {
url = uri("https://github-package-registry-mirror.gc.nav.no/cached/maven-release")
}
}
dependencies {
val auth0JwtVersion = "4.5.0"
val caffeineVersion = "3.2.0"
val graphqlVersion = "8.3.0"
val kafkaVersion = "3.9.0"
val ktorVersion = "3.1.0"
val logbackVersion = "1.5.16"
val logstashVersion = "8.0"
val micrometerVersion = "1.14.4"
val mockkVersion = "1.13.16"
val navSecurityVersion = "5.0.17"
val kotlinVersion = "2.1.0"
val tmsKtorTokenSupportVersion = "5.0.1"
val tmsVarselBuilderVersion = "2.1.1"
val kotestVersion = "5.9.1"
implementation("com.auth0:java-jwt:$auth0JwtVersion")
implementation("com.github.ben-manes.caffeine:caffeine:$caffeineVersion")
implementation("org.apache.kafka:kafka-clients:$kafkaVersion")
implementation("no.nav.tms.varsel:kotlin-builder:$tmsVarselBuilderVersion")
implementation("io.ktor:ktor-serialization:$ktorVersion")
implementation("io.ktor:ktor-serialization-kotlinx-json:$ktorVersion")
implementation("io.ktor:ktor-server-netty:$ktorVersion")
implementation("io.ktor:ktor-server-call-logging:$ktorVersion")
implementation("io.ktor:ktor-server-core:$ktorVersion")
implementation("io.ktor:ktor-server-cors:$ktorVersion")
implementation("io.ktor:ktor-server-forwarded-header:$ktorVersion")
implementation("io.ktor:ktor-server-status-pages:$ktorVersion")
implementation("io.ktor:ktor-server-content-negotiation:$ktorVersion")
implementation("io.ktor:ktor-server-auth:$ktorVersion")
implementation("io.ktor:ktor-server-auth-jwt:$ktorVersion")
implementation("io.ktor:ktor-client-content-negotiation:$ktorVersion")
implementation("io.ktor:ktor-client-apache:$ktorVersion")
implementation("io.ktor:ktor-server-metrics-micrometer:$ktorVersion")
implementation("com.expediagroup:graphql-kotlin-ktor-client:$graphqlVersion")
implementation("io.micrometer:micrometer-registry-prometheus:$micrometerVersion")
implementation("no.nav.security:token-validation-ktor-v3:$navSecurityVersion")
implementation("no.nav.tms.token.support:tokendings-exchange:$tmsKtorTokenSupportVersion")
implementation("no.nav.tms.token.support:azure-exchange:$tmsKtorTokenSupportVersion")
implementation("net.logstash.logback:logstash-logback-encoder:$logstashVersion")
implementation("ch.qos.logback:logback-classic:$logbackVersion")
testImplementation("org.jetbrains.kotlin:kotlin-test-junit5:$kotlinVersion")
testImplementation("io.ktor:ktor-server-test-host:$ktorVersion")
testImplementation("io.ktor:ktor-client-mock:$ktorVersion")
testImplementation("io.mockk:mockk:$mockkVersion")
testImplementation("io.kotest:kotest-runner-junit5:$kotestVersion")
testImplementation("io.kotest:kotest-assertions-json:$kotestVersion")
}
application {
mainClass.set("io.ktor.server.netty.EngineMain")
}
tasks {
withType<Test> {
useJUnitPlatform()
testLogging {
exceptionFormat = TestExceptionFormat.FULL
events("passed", "skipped", "failed")
}
}
}
graphql {
client {
packageName = "no.nav.pdl.generated.dto"
serializer = GraphQLSerializer.KOTLINX
sdlEndpoint = "https://navikt.github.io/pdl/pdl-api-sdl.graphqls"
}
}