-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
70 lines (58 loc) · 2.2 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
plugins {
kotlin("jvm") version "2.0.21"
application
}
repositories {
mavenCentral()
maven("https://packages.confluent.io/maven")
maven("https://jitpack.io")
}
configurations.all {
resolutionStrategy {
// Sårbar versjon av snappy-java i kafka-avro-serializer:7.5.0 via kafka-clients:3.5.0
force("org.xerial.snappy:snappy-java:1.1.10.7")
}
}
dependencies {
val ktorVersion = "2.3.12"
implementation("io.ktor:ktor-server-content-negotiation-jvm:$ktorVersion")
implementation("io.ktor:ktor-server-core-jvm:$ktorVersion")
implementation("io.ktor:ktor-serialization-jackson-jvm:$ktorVersion")
testImplementation(kotlin("test"))
implementation("com.github.navikt:rapids-and-rivers:2024020419561707073004.70bfb92c077c")
implementation("io.github.microutils:kotlin-logging:3.0.5")
implementation("com.natpryce:konfig:1.6.10.0")
implementation("org.apache.avro:avro:1.12.0")
implementation("io.confluent:kafka-avro-serializer:7.7.1")
implementation("com.github.navikt:brukernotifikasjon-schemas:v2.5.2")
implementation("com.github.navikt:tms-utkast:20230808103449-2eb1848")
implementation("org.flywaydb:flyway-core:9.22.2")
implementation("com.zaxxer:HikariCP:5.1.0")
implementation("org.postgresql:postgresql:42.7.4")
implementation("com.github.seratch:kotliquery:1.9.0")
testImplementation("io.mockk:mockk:1.13.13")
testImplementation("io.ktor:ktor-server-tests-jvm:$ktorVersion")
testImplementation("org.testcontainers:testcontainers:1.20.3")
testImplementation("org.testcontainers:postgresql:1.20.3")
testImplementation("io.ktor:ktor-client-content-negotiation:$ktorVersion")
testImplementation("org.junit.jupiter:junit-jupiter-params:5.11.3")
}
tasks {
test {
useJUnitPlatform()
}
jar {
manifest {
attributes["Main-Class"] = application.mainClass
}
archiveBaseName.set("app")
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
from(configurations.runtimeClasspath.get().map { if (it.isDirectory) it else zipTree(it) })
}
}
kotlin {
jvmToolchain(17)
}
application {
mainClass.set("no.nav.dagpenger.behov.brukernotifikasjon.MainKt")
}