-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle.kts
128 lines (101 loc) · 4.53 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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
val exposedVersion = "0.45.0"
val h2Version = "2.2.224"
val pamGeographyVersion = "2.9"
val tokenValidationVersion = "1.3.0"
val tokenSupportVersion = "4.1.7"
val oidcSupportVersion = "0.2.18"
val logstashVersion = "7.4"
val pdfboxVersion = "3.0.2"
val tikaVersion = "2.9.2"
val resilience4jVersion = "2.2.0"
val problemSpringWebStartVersion = "0.27.0"
val shedlockVersion = "5.13.0"
val springDocVersion = "2.5.0"
val kodeverkVersion = "1.8.13"
val simpleSlackPosterVersion = "0.1.4"
val mockitoInlineVersion = "5.2.0"
val testContainersVersion = "1.19.8"
val mockkVersion = "1.13.10"
val springMockkVersion = "4.0.2"
val githubUser: String by project
val githubPassword: String by project
ext["okhttp3.version"] = "4.9.0" // For at token support testen kjører
repositories {
mavenCentral()
maven ("https://github-package-registry-mirror.gc.nav.no/cached/maven-release")
}
plugins {
val kotlinVersion = "1.9.24"
id("org.jetbrains.kotlin.jvm") version kotlinVersion
id("org.springframework.boot") version "3.2.5"
id("org.jetbrains.kotlin.plugin.spring") version kotlinVersion
kotlin("plugin.jpa") version kotlinVersion
idea
}
apply(plugin = "io.spring.dependency-management")
dependencies {
implementation(kotlin("stdlib"))
implementation("org.springframework.boot:spring-boot-starter-web")
implementation("org.springframework.boot:spring-boot-starter-actuator")
implementation("org.springframework.boot:spring-boot-starter-webflux")
implementation("org.springframework.boot:spring-boot-starter-validation")
implementation("org.springframework.boot:spring-boot-starter-data-jpa")
implementation("io.micrometer:micrometer-registry-prometheus")
implementation("org.projectreactor:reactor-spring:1.0.1.RELEASE")
implementation("org.flywaydb:flyway-core")
implementation("com.zaxxer:HikariCP")
implementation("org.postgresql:postgresql")
implementation("io.github.resilience4j:resilience4j-retry:$resilience4jVersion")
implementation("io.github.resilience4j:resilience4j-kotlin:$resilience4jVersion")
implementation("no.nav.klage:klage-kodeverk:$kodeverkVersion")
implementation("ch.qos.logback:logback-classic")
implementation("ch.qos.logback:logback-access")
implementation("org.codehaus.janino:janino")
implementation("net.logstash.logback:logstash-logback-encoder:$logstashVersion")
implementation("com.fasterxml.jackson.module:jackson-module-kotlin")
implementation("no.nav.pam.geography:pam-geography:$pamGeographyVersion")
implementation("org.apache.pdfbox:pdfbox:$pdfboxVersion")
implementation("org.apache.tika:tika-core:$tikaVersion")
implementation("io.projectreactor.kafka:reactor-kafka")
implementation("org.springframework.kafka:spring-kafka")
implementation("no.nav.security:token-validation-spring:$tokenSupportVersion")
implementation("no.nav.security:oidc-spring-support:$oidcSupportVersion")
implementation("no.nav.security:token-client-spring:$tokenSupportVersion")
implementation("net.javacrumbs.shedlock:shedlock-spring:$shedlockVersion")
implementation("net.javacrumbs.shedlock:shedlock-provider-jdbc-template:$shedlockVersion")
implementation("no.nav.slackposter:simple-slack-poster:$simpleSlackPosterVersion")
implementation("org.springdoc:springdoc-openapi-starter-webmvc-ui:$springDocVersion")
testImplementation("org.testcontainers:testcontainers:$testContainersVersion")
testImplementation("org.testcontainers:junit-jupiter:$testContainersVersion")
testImplementation("org.testcontainers:postgresql:$testContainersVersion")
testImplementation("com.h2database:h2:$h2Version")
testImplementation("org.springframework.boot:spring-boot-starter-test") {
exclude(group = "org.junit.vintage")
exclude(group = "org.mockito")
}
testImplementation("io.mockk:mockk:$mockkVersion")
testImplementation("com.ninja-squad:springmockk:$springMockkVersion")
testImplementation("no.nav.security:token-validation-spring-test:$tokenSupportVersion")
}
idea {
module {
isDownloadJavadoc = true
}
}
java.sourceCompatibility = JavaVersion.VERSION_21
tasks.withType<KotlinCompile> {
kotlinOptions{
freeCompilerArgs = listOf("-Xjsr305=strict")
jvmTarget = "21"
}
}
tasks.withType<Test> {
useJUnitPlatform()
testLogging {
events("passed", "skipped", "failed")
}
}
tasks.getByName<org.springframework.boot.gradle.tasks.bundling.BootJar>("bootJar") {
this.archiveFileName.set("app.jar")
}