-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
102 lines (84 loc) · 3.98 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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
val logstashVersion = "8.0"
val tokenValidationVersion = "5.0.17"
val archunitVersion = "1.4.0"
val testContainersVersion = "1.20.5"
val mockkVersion = "1.13.16"
val apachePoiVersion = "5.4.0"
val springDocVersion = "2.8.5"
val shedlockVersion = "6.3.0"
val klageKodeverkVersion = "1.9.20"
val ehcacheVersion = "3.10.8"
val otelVersion = "1.47.0"
plugins {
val kotlinVersion = "2.1.10"
id("org.springframework.boot") version "3.4.3"
kotlin("jvm") version kotlinVersion
kotlin("plugin.spring") version kotlinVersion
kotlin("plugin.jpa") version kotlinVersion
}
apply(plugin = "io.spring.dependency-management")
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")
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-data-jpa")
implementation("org.springframework.boot:spring-boot-starter-data-jdbc")
implementation("org.springframework.boot:spring-boot-starter-validation")
implementation("org.springframework.kafka:spring-kafka")
implementation("no.nav.security:token-validation-spring:$tokenValidationVersion")
implementation("no.nav.security:token-client-spring:$tokenValidationVersion")
implementation("org.springdoc:springdoc-openapi-starter-webmvc-ui:$springDocVersion")
implementation("org.flywaydb:flyway-core")
implementation("org.flywaydb:flyway-database-postgresql")
implementation("org.postgresql:postgresql")
implementation("com.fasterxml.jackson.module:jackson-module-kotlin")
implementation("org.jetbrains.kotlin:kotlin-reflect")
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8")
implementation("ch.qos.logback:logback-classic")
implementation("net.logstash.logback:logstash-logback-encoder:$logstashVersion")
implementation("org.projectreactor:reactor-spring:1.0.1.RELEASE")
implementation("com.papertrailapp:logback-syslog4j:1.0.0")
implementation("net.javacrumbs.shedlock:shedlock-spring:$shedlockVersion")
implementation("net.javacrumbs.shedlock:shedlock-provider-jdbc-template:$shedlockVersion")
implementation("io.opentelemetry:opentelemetry-api:$otelVersion")
implementation("org.springframework.boot:spring-boot-starter-cache")
implementation("javax.cache:cache-api")
implementation("org.ehcache:ehcache:$ehcacheVersion")
implementation("io.micrometer:micrometer-registry-prometheus")
implementation("org.apache.poi:poi:$apachePoiVersion")
implementation("org.apache.poi:poi-ooxml:$apachePoiVersion")
implementation("no.nav.klage:klage-kodeverk:$klageKodeverkVersion")
testImplementation("org.springframework.boot:spring-boot-starter-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")
}
configurations.all {
resolutionStrategy.cacheChangingModulesFor(0, "seconds")
}
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")
}