-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
95 lines (77 loc) · 3.62 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
plugins {
val kotlinVersion = "2.1.0"
id("org.springframework.boot") version "3.4.1"
id("io.spring.dependency-management") version "1.1.7"
id("org.jlleitschuh.gradle.ktlint") version "12.1.2"
kotlin("jvm") version kotlinVersion
kotlin("plugin.spring") version kotlinVersion
}
group = "no.nav.amt-arrangor"
version = "1.0-SNAPSHOT"
repositories {
mavenCentral()
maven { setUrl("https://github-package-registry-mirror.gc.nav.no/cached/maven-release") }
maven { setUrl("https://packages.confluent.io/maven/") }
}
val logstashEncoderVersion = "8.0"
val kafkaClientsVersion = "3.9.0"
val shedlockVersion = "6.1.0"
val okHttpVersion = "4.12.0"
val tokenSupportVersion = "5.0.14"
val arrowVersion = "2.0.0"
val kotestVersion = "5.9.1"
val testcontainersVersion = "1.20.4"
val mockkVersion = "1.13.14"
val mockOauth2ServerVersion = "2.1.10"
val ktlintVersion = "1.4.1"
val commonVersion = "3.2024.10.25_13.44-9db48a0dbe67"
dependencies {
implementation("org.springframework.boot:spring-boot-starter")
implementation("org.springframework.boot:spring-boot-starter-actuator")
implementation("org.springframework.boot:spring-boot-starter-validation")
implementation("org.springframework.boot:spring-boot-starter-web")
implementation("org.springframework.boot:spring-boot-starter-logging")
implementation("org.springframework.boot:spring-boot-starter-data-jdbc")
implementation("org.springframework.boot:spring-boot-configuration-processor")
implementation("net.javacrumbs.shedlock:shedlock-spring:$shedlockVersion")
implementation("no.nav.security:token-validation-spring:$tokenSupportVersion")
implementation("org.springframework.kafka:spring-kafka")
implementation("org.apache.kafka:kafka-clients:$kafkaClientsVersion") {
exclude("org.xerial.snappy", "snappy-java")
}
implementation("org.jetbrains.kotlin:kotlin-reflect")
implementation("org.jetbrains.kotlin:kotlin-stdlib")
implementation("com.fasterxml.jackson.module:jackson-module-kotlin")
implementation("org.flywaydb:flyway-core")
implementation("org.flywaydb:flyway-database-postgresql")
implementation("io.micrometer:micrometer-registry-prometheus")
implementation("net.logstash.logback:logstash-logback-encoder:$logstashEncoderVersion")
implementation("no.nav.common:log:$commonVersion")
implementation("no.nav.common:token-client:$commonVersion")
implementation("no.nav.common:rest:$commonVersion")
implementation("no.nav.common:job:$commonVersion")
implementation("com.squareup.okhttp3:okhttp:$okHttpVersion")
implementation("io.arrow-kt:arrow-core:$arrowVersion")
implementation("io.arrow-kt:arrow-fx-coroutines:$arrowVersion")
implementation("org.postgresql:postgresql")
testImplementation("org.springframework.boot:spring-boot-starter-test") {
exclude("com.vaadin.external.google", "android-json")
}
testImplementation("io.kotest:kotest-assertions-core-jvm:$kotestVersion")
testImplementation("no.nav.security:token-validation-spring-test:$tokenSupportVersion")
testImplementation("org.testcontainers:testcontainers:$testcontainersVersion")
testImplementation("org.testcontainers:postgresql:$testcontainersVersion")
testImplementation("org.testcontainers:kafka:$testcontainersVersion")
testImplementation("org.awaitility:awaitility")
testImplementation("io.mockk:mockk:$mockkVersion")
testImplementation("no.nav.security:mock-oauth2-server:$mockOauth2ServerVersion")
}
tasks.test {
useJUnitPlatform()
}
kotlin {
jvmToolchain(21)
}
configure<org.jlleitschuh.gradle.ktlint.KtlintExtension> {
version.set(ktlintVersion)
}