-
Notifications
You must be signed in to change notification settings - Fork 4
/
build.gradle.kts
142 lines (113 loc) · 5.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
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
129
130
131
132
133
134
135
136
137
138
139
140
141
142
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
val mockkVersion = "1.13.13"
val tokenValidationVersion = "5.0.11"
val logstashVersion = "8.0"
val springRetryVersion = "2.0.10"
val springMockkVersion = "4.0.2"
val springDocVersion = "2.6.0"
val testContainersVersion = "1.20.3"
val shedlockVersion = "5.16.0"
val archunitVersion = "1.3.0"
val kotlinXmlBuilderVersion = "1.9.1"
val logbackSyslog4jVersion = "1.0.0"
val jacksonJsonschemaVersion = "1.0.39"
val pdfboxVersion = "3.0.3"
val tikaVersion = "3.0.0"
val verapdfVersion = "1.26.1"
val klageKodeverkVersion = "1.8.61"
val commonsFileupload2JakartaVersion = "2.0.0-M1"
val otelVersion = "1.44.1"
plugins {
val kotlinVersion = "2.0.21"
kotlin("jvm") version kotlinVersion
kotlin("plugin.spring") version kotlinVersion
kotlin("plugin.jpa") version kotlinVersion
id("org.springframework.boot") version "3.3.5"
id("io.spring.dependency-management") version "1.1.6"
idea
kotlin("kapt") version kotlinVersion
}
java.sourceCompatibility = JavaVersion.VERSION_21
repositories {
mavenCentral()
maven("https://github-package-registry-mirror.gc.nav.no/cached/maven-release")
}
dependencies {
implementation("org.jetbrains.kotlin:kotlin-reflect")
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8")
implementation("org.springframework.boot:spring-boot-starter-web")
implementation("org.springframework.boot:spring-boot-starter-jetty")
modules {
module("org.springframework.boot:spring-boot-starter-tomcat") {
replacedBy("org.springframework.boot:spring-boot-starter-jetty")
}
}
implementation("org.eclipse.jetty.http2:jetty-http2-server")
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.apache.commons:commons-fileupload2-jakarta:$commonsFileupload2JakartaVersion")
implementation("org.springframework.boot:spring-boot-starter-cache")
implementation("javax.cache:cache-api")
implementation("org.ehcache:ehcache:3.10.8")
implementation("org.springframework.boot:spring-boot-starter-data-jdbc")
implementation("org.springframework.boot:spring-boot-starter-data-jpa")
implementation("org.springframework.kafka:spring-kafka")
implementation("io.projectreactor.kafka:reactor-kafka")
implementation("org.flywaydb:flyway-core")
implementation("org.flywaydb:flyway-database-postgresql")
implementation("com.zaxxer:HikariCP")
implementation("org.postgresql:postgresql")
implementation("com.fasterxml.jackson.module:jackson-module-kotlin")
implementation("ch.qos.logback:logback-classic")
kapt("org.hibernate.orm:hibernate-jpamodelgen:6.6.2.Final")
implementation("io.micrometer:micrometer-registry-prometheus")
implementation("io.opentelemetry:opentelemetry-api:$otelVersion")
implementation("net.javacrumbs.shedlock:shedlock-spring:$shedlockVersion")
implementation("net.javacrumbs.shedlock:shedlock-provider-jdbc-template:$shedlockVersion")
implementation("org.springdoc:springdoc-openapi-starter-webmvc-ui:$springDocVersion")
implementation("net.logstash.logback:logstash-logback-encoder:$logstashVersion")
implementation("com.papertrailapp:logback-syslog4j:$logbackSyslog4jVersion")
implementation("com.kjetland:mbknor-jackson-jsonschema_2.13:$jacksonJsonschemaVersion")
implementation("org.redundent:kotlin-xml-builder:$kotlinXmlBuilderVersion")
implementation("no.nav.klage:klage-kodeverk:$klageKodeverkVersion")
implementation("no.nav.security:token-validation-spring:$tokenValidationVersion")
implementation("no.nav.security:token-client-spring:$tokenValidationVersion")
implementation("org.springframework.retry:spring-retry:$springRetryVersion")
implementation("org.verapdf:validation-model:$verapdfVersion") {
exclude(group = "com.sun.xml.bind")
}
implementation("org.apache.pdfbox:pdfbox:$pdfboxVersion")
implementation("org.apache.tika:tika-core:$tikaVersion")
testImplementation("org.springframework.boot:spring-boot-starter-test") {
exclude(group = "org.junit.vintage")
exclude(group = "org.mockito")
}
testImplementation("org.springframework.kafka:spring-kafka-test")
testImplementation("org.testcontainers:testcontainers:$testContainersVersion")
testImplementation("org.testcontainers:junit-jupiter:$testContainersVersion")
testImplementation("org.testcontainers:postgresql:$testContainersVersion")
testImplementation("com.tngtech.archunit:archunit-junit5:$archunitVersion")
testImplementation("io.mockk:mockk:$mockkVersion")
testImplementation("com.ninja-squad:springmockk:$springMockkVersion")
}
idea {
module {
isDownloadJavadoc = true
}
}
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")
}