forked from navikt/kabal-api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
131 lines (105 loc) · 4.86 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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
val mockkVersion = "1.12.1"
val tokenValidationVersion = "1.3.9"
val logstashVersion = "7.0"
val springSleuthVersion = "3.0.4"
val unleashVersion = "4.4.1"
val problemSpringWebStartVersion = "0.27.0"
val springRetryVersion = "1.3.1"
val springMockkVersion = "3.0.1"
val springFoxVersion = "3.0.0"
val testContainersVersion = "1.16.2"
val shedlockVersion = "4.29.0"
val archunitVersion = "0.22.0"
val kotlinXmlBuilderVersion = "1.7.3"
val logbackSyslog4jVersion = "1.0.0"
val jacksonJsonschemaVersion = "1.0.39"
val pdfboxVersion = "2.0.19"
val tikaVersion = "1.24.1"
val verapdfVersion = "1.18.8"
//val githubUser: String by project
//val githubPassword: String by project
plugins {
id("org.springframework.boot") version "2.5.7"
id("io.spring.dependency-management") version "1.0.11.RELEASE"
kotlin("jvm") version "1.6.0"
kotlin("plugin.spring") version "1.6.0"
kotlin("plugin.jpa") version "1.6.0"
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/")
maven("https://jitpack.io")
}
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")
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("org.flywaydb:flyway-core")
implementation("com.zaxxer:HikariCP")
implementation("org.postgresql:postgresql")
implementation("com.fasterxml.jackson.module:jackson-module-kotlin")
implementation("io.micrometer:micrometer-registry-prometheus")
implementation("io.micrometer:micrometer-registry-influx")
implementation("ch.qos.logback:logback-classic")
implementation("net.javacrumbs.shedlock:shedlock-spring:$shedlockVersion")
implementation("net.javacrumbs.shedlock:shedlock-provider-jdbc-template:$shedlockVersion")
implementation("org.springframework.cloud:spring-cloud-starter-sleuth:$springSleuthVersion")
implementation("io.springfox:springfox-boot-starter:$springFoxVersion")
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("com.github.navikt:kabal-kodeverk:2022.02.07-08.26.b578dc26743e")
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.zalando:problem-spring-web-starter:$problemSpringWebStartVersion")
implementation("org.verapdf:validation-model:$verapdfVersion")
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")
}