-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle.kts
86 lines (71 loc) · 3.38 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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
val kotlinVersion = "2.1.10"
id("org.springframework.boot") version "3.4.2"
id("io.spring.dependency-management") version "1.1.7"
kotlin("jvm") version kotlinVersion
kotlin("plugin.spring") version kotlinVersion
}
group = "no.nav.amt-altinn-acl"
version = "0.0.1-SNAPSHOT"
java.sourceCompatibility = JavaVersion.VERSION_21
repositories {
mavenCentral()
maven { setUrl("https://github-package-registry-mirror.gc.nav.no/cached/maven-release") }
}
val commonVersion = "3.2024.10.25_13.44-9db48a0dbe67"
val testcontainersVersion = "1.20.4"
val logstashEncoderVersion = "8.0"
val shedlockVersion = "6.2.0"
val tokenSupportVersion = "5.0.16"
val okHttpVersion = "4.12.0"
val mockkVersion = "1.13.16"
val kotestVersion = "5.9.1"
val mockOauth2ServerVersion = "2.1.10"
val unleashVersion = "10.0.0"
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("org.jetbrains.kotlin:kotlin-reflect")
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8")
implementation("com.fasterxml.jackson.module:jackson-module-kotlin")
implementation("io.micrometer:micrometer-registry-prometheus")
implementation("org.flywaydb:flyway-core")
implementation("org.flywaydb:flyway-database-postgresql")
implementation("net.logstash.logback:logstash-logback-encoder:$logstashEncoderVersion")
implementation("net.javacrumbs.shedlock:shedlock-spring:$shedlockVersion")
implementation("no.nav.common:rest:$commonVersion")
implementation("no.nav.common:token-client:$commonVersion")
implementation("no.nav.common:job:$commonVersion")
implementation("no.nav.security:token-validation-spring:$tokenSupportVersion")
implementation("com.squareup.okhttp3:okhttp:$okHttpVersion")
runtimeOnly("org.postgresql:postgresql")
implementation("io.getunleash:unleash-client-java:$unleashVersion")
testImplementation("org.springframework.boot:spring-boot-starter-test")
testImplementation("io.mockk:mockk:$mockkVersion")
testImplementation("org.testcontainers:testcontainers:$testcontainersVersion")
testImplementation("org.testcontainers:postgresql:$testcontainersVersion")
testImplementation("io.kotest:kotest-assertions-core-jvm:$kotestVersion")
testImplementation("com.squareup.okhttp3:mockwebserver:$okHttpVersion")
testImplementation("no.nav.security:mock-oauth2-server:$mockOauth2ServerVersion")
testImplementation("org.springframework.boot:spring-boot-starter-test") {
exclude("com.vaadin.external.google", "android-json")
}
}
tasks.getByName<org.springframework.boot.gradle.tasks.bundling.BootJar>("bootJar") {
this.archiveFileName.set("${archiveBaseName.get()}.${archiveExtension.get()}")
}
tasks.withType<KotlinCompile> {
kotlinOptions {
freeCompilerArgs = listOf("-Xjsr305=strict")
jvmTarget = "21"
}
}
tasks.withType<Test> {
useJUnitPlatform()
}