-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle.kts
79 lines (69 loc) · 2.92 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
plugins {
kotlin("jvm") version "1.9.25"
kotlin("plugin.spring") version "1.8.0"
id("org.springframework.boot") version "3.3.4"
id("io.spring.dependency-management") version "1.1.6"
id("com.github.johnrengelman.shadow") version "8.1.1"
}
group = "no.nav.tsm.mottak"
version = "0.0.2"
repositories {
mavenCentral()
maven {
name = "GitHubPackages"
url = uri("https://github-package-registry-mirror.gc.nav.no/cached/maven-release")
}
}
val kotlin_version = "2.0.21"
val logback_version = "1.5.11"
val logback_encoder_version = "8.0"
val prometheus_version = "1.13.2"
val flyway_version= "10.20.0"
val postgres_version= "42.7.3"
val jackson_version= "2.17.2"
val mockitVersion = "3.2.0"
val kafkaClientVersion = "3.8.0"
val googleCloudStorageVersion = "2.48.1"
dependencies {
//implementation("org.springframework.boot:spring-boot-starter-security")
implementation("org.springframework.boot:spring-boot-starter-web")
implementation("com.fasterxml.jackson.module:jackson-module-kotlin")
implementation("org.springframework.kafka:spring-kafka")
implementation("io.projectreactor.kotlin:reactor-kotlin-extensions")
implementation("org.jetbrains.kotlin:kotlin-reflect")
implementation("org.springframework.boot:spring-boot-starter-actuator")
implementation("io.micrometer:micrometer-registry-prometheus")
implementation("org.flywaydb:flyway-database-postgresql:$flyway_version")
implementation("org.springframework.boot:spring-boot-starter-data-jdbc")
implementation("org.postgresql:postgresql:$postgres_version")
implementation("net.logstash.logback:logstash-logback-encoder:${logback_encoder_version}")
implementation("ch.qos.logback:logback-classic:$logback_version")
implementation("com.fasterxml.jackson.module:jackson-module-kotlin:$jackson_version")
implementation("com.fasterxml.jackson.datatype:jackson-datatype-jsr310:$jackson_version")
implementation("org.apache.kafka:kafka-clients:$kafkaClientVersion")
implementation("org.postgresql:postgresql")
implementation("org.flywaydb:flyway-core:$flyway_version")
implementation("com.google.cloud:google-cloud-storage:$googleCloudStorageVersion")
testRuntimeOnly("org.junit.platform:junit-platform-launcher")
testImplementation("org.mockito.kotlin:mockito-kotlin:$mockitVersion")
testImplementation("org.springframework.boot:spring-boot-starter-test")
testImplementation("io.projectreactor:reactor-test")
testImplementation("org.springframework.security:spring-security-test")
testImplementation("org.jetbrains.kotlin:kotlin-test-junit:$kotlin_version")
}
tasks {
test {
useJUnitPlatform()
}
shadowJar {
archiveBaseName.set("app")
archiveClassifier.set("")
isZip64 = true
manifest {
attributes["Main-Class"] = "no.nav.tsm.mottak.ApplicationKt"
}
}
bootJar {
archiveFileName = "app.jar"
}
}