-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
108 lines (88 loc) · 3.86 KB
/
build.gradle
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
buildscript {
ext {
kotlinVersion = '2.0.21'
springBootVersion = '3.3.5'
springKafkaVersion = '3.2.4'
archunitVersion = '1.3.0'
tokenSupportVersion = '5.0.11'
jacksonModuleKotlinVersion = '2.18.1'
}
repositories {
maven {
url "https://maven.pkg.github.com/navikt/maven-release"
credentials {
username = "token"
password = "$System.env.GITHUB_TOKEN"
}
}
}
}
plugins {
id "org.springframework.boot" version "$springBootVersion"
id "io.spring.dependency-management" version "1.1.6"
id "org.jetbrains.kotlin.jvm" version "$kotlinVersion"
id "org.jetbrains.kotlin.plugin.spring" version "$kotlinVersion"
id "org.jetbrains.kotlin.plugin.allopen" version "$kotlinVersion"
}
apply from: "buildSrc/ep-module.gradle"
group = 'no.nav.eessi.pensjon'
dependencies {
//eessi pensjon libs
implementation("no.nav.eessi.pensjon:ep-logging:2.1.87")
implementation("no.nav.eessi.pensjon:ep-eux:2.3.37") {
exclude module: 'ep-security-sts'
}
implementation("no.nav.eessi.pensjon:ep-metrics:2.0.89")
// Spring-boot BOM-fil spesifiserer versjoner for Spring Boot-avhengigheter
implementation(platform("org.springframework.boot:spring-boot-dependencies:${springBootVersion}"))
implementation("org.springframework.boot:spring-boot-starter-web")
implementation("org.yaml:snakeyaml:2.3") // Pga https://security.snyk.io/package/maven/org.yaml:snakeyaml
implementation("org.springframework.boot:spring-boot-starter-aop")
implementation("org.springframework.boot:spring-boot-starter-actuator")
implementation("org.springframework.boot:spring-boot-actuator")
implementation "org.springframework.kafka:spring-kafka:$springKafkaVersion"
implementation("org.springframework.retry:spring-retry:2.0.10")
// Spring Framework BOM-fil overstyrer så vi får siste patch-versjon av Spring Framework
implementation(platform("org.springframework:spring-framework-bom:6.2.0"))
implementation "com.fasterxml.jackson.core:jackson-core:${jacksonModuleKotlinVersion}"
implementation 'org.jetbrains.kotlin:kotlin-reflect'
implementation("org.apache.httpcomponents.client5:httpclient5:5.3.1")
//GCP
implementation("com.google.cloud:google-cloud-storage:2.45.0")
// Logging
implementation("net.logstash.logback:logstash-logback-encoder:8.0")
configurations { all*.exclude group: 'commons-logging', module: 'commons-logging' }
implementation("org.slf4j:jcl-over-slf4j:2.0.16")
//Auth
implementation("no.nav.security:token-client-spring:${tokenSupportVersion}")
implementation("no.nav.security:token-validation-spring:${tokenSupportVersion}")
implementation("no.nav.security:token-validation-jaxrs:${tokenSupportVersion}")
implementation("no.nav.security:token-validation-test-support:2.0.5")
//test
testImplementation('org.springframework.boot:spring-boot-starter-test') {
exclude module: 'junit'
exclude module: "mockito-core"
exclude module: "junit-vintage-engine"
}
testImplementation("io.mockk:mockk:1.13.13")
testImplementation("com.ninja-squad:springmockk:4.0.2")
testImplementation "org.springframework.kafka:spring-kafka-test:$springKafkaVersion"
testImplementation("org.junit.jupiter:junit-jupiter:5.11.2")
testImplementation("org.mock-server:mockserver-netty:5.15.0") {
exclude module: 'junit'
}
// Architecture tests
testImplementation ("com.tngtech.archunit:archunit:${archunitVersion}")
}
test {
// set heap size for the test JVM(s)
minHeapSize = "128m"
maxHeapSize = "512m"
// set JVM arguments for the test JVM(s)
failFast = true
testLogging {
exceptionFormat "full"
events "started", "skipped", "passed", "failed"
showStandardStreams true
}
}