forked from navikt/kabal-api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
130 lines (103 loc) · 4.69 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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
val mockkVersion = "1.13.7"
val tokenValidationVersion = "3.1.5"
val logstashVersion = "7.4"
val unleashVersion = "4.4.1"
val springRetryVersion = "2.0.2"
val springMockkVersion = "4.0.2"
val springDocVersion = "2.2.0"
val testContainersVersion = "1.19.0"
val shedlockVersion = "5.7.0"
val archunitVersion = "1.1.0"
val kotlinXmlBuilderVersion = "1.9.0"
val logbackSyslog4jVersion = "1.0.0"
val jacksonJsonschemaVersion = "1.0.39"
val pdfboxVersion = "3.0.0"
val tikaVersion = "2.9.0"
val verapdfVersion = "1.24.1"
val klageKodeverkVersion = "1.6.5"
plugins {
val kotlinVersion = "1.9.10"
id("org.springframework.boot") version "3.1.3"
id("io.spring.dependency-management") version "1.1.3"
kotlin("jvm") version kotlinVersion
kotlin("plugin.spring") version kotlinVersion
kotlin("plugin.jpa") version kotlinVersion
idea
}
java.sourceCompatibility = JavaVersion.VERSION_17
repositories {
mavenCentral()
maven("https://github-package-registry-mirror.gc.nav.no/cached/maven-release")
maven("https://packages.confluent.io/maven/")
}
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-actuator")
implementation("org.springframework.boot:spring-boot-starter-webflux")
implementation("org.springframework.boot:spring-boot-starter-validation")
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("com.zaxxer:HikariCP")
implementation("org.postgresql:postgresql")
implementation("com.fasterxml.jackson.module:jackson-module-kotlin")
implementation("ch.qos.logback:logback-classic")
implementation("io.micrometer:micrometer-registry-prometheus")
implementation("io.micrometer:micrometer-tracing-bridge-brave")
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("no.finn.unleash:unleash-client-java:$unleashVersion")
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 = "17"
}
}
tasks.withType<Test> {
useJUnitPlatform()
testLogging {
events("passed", "skipped", "failed")
}
}
tasks.getByName<org.springframework.boot.gradle.tasks.bundling.BootJar>("bootJar") {
this.archiveFileName.set("app.jar")
}