-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdolly-proxies.gradle
91 lines (77 loc) · 2.84 KB
/
dolly-proxies.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
plugins {
id "dolly-sonar"
id "dolly-versions"
id "io.spring.dependency-management" // See ../../../build.gradle for version.
id "java"
id "org.springframework.boot" // See ../../../build.gradle for version.
}
configurations {
compileOnly {
extendsFrom annotationProcessor
}
}
dependencies {
annotationProcessor "org.projectlombok:lombok"
annotationProcessor "org.springframework.boot:spring-boot-configuration-processor"
compileOnly "org.projectlombok:lombok"
developmentOnly "org.springframework.boot:spring-boot-devtools"
implementation "com.google.cloud:spring-cloud-gcp-starter-secretmanager:$versions.gcpSecretManager"
implementation "net.logstash.logback:logstash-logback-encoder:$versions.logback"
implementation "no.nav.testnav.libs:reactive-core"
implementation "no.nav.testnav.libs:reactive-proxy"
implementation "no.nav.testnav.libs:testing"
implementation "org.hibernate.validator:hibernate-validator"
implementation "org.projectlombok:lombok"
implementation "org.springframework.boot:spring-boot-starter-actuator"
implementation "org.springframework.boot:spring-boot-starter-oauth2-resource-server"
implementation "org.springframework.cloud:spring-cloud-starter-gateway"
runtimeOnly "io.grpc:grpc-netty:$versions.grpc"
runtimeOnly "io.micrometer:micrometer-registry-prometheus"
testAnnotationProcessor "org.projectlombok:lombok"
testImplementation "org.springframework.boot:spring-boot-starter-test"
testImplementation "org.springframework.cloud:spring-cloud-contract-wiremock"
}
dependencyManagement {
applyMavenExclusions = false
imports {
mavenBom "org.springframework.boot:spring-boot-dependencies:$versions.springBoot"
mavenBom "org.springframework.cloud:spring-cloud-dependencies:$versions.springCloud"
mavenBom "org.springframework.session:spring-session-bom:$versions.springSession"
}
}
java {
toolchain {
languageVersion = JavaLanguageVersion.of(21)
}
}
repositories {
mavenCentral()
maven {
name = "GitHub Packages"
url = uri("https://maven.pkg.github.com/navikt/maven-release")
credentials(PasswordCredentials) {
username "token"
password System.getenv("NAV_TOKEN")
}
}
maven {
name = "Confluent"
url = uri("https://packages.confluent.io/maven/")
}
maven {
name = "Shibboleth"
url = uri("https://build.shibboleth.net/maven/releases/")
}
mavenLocal()
}
tasks.bootJar {
archiveFileName = "app.jar"
duplicatesStrategy = DuplicatesStrategy.WARN
}
tasks.test {
useJUnitPlatform()
doFirst {
jvmArgs += '-javaagent:' + configurations.testRuntimeClasspath.find { it.name.contains("byte-buddy-agent") }
jvmArgs "--add-opens", "java.base/java.lang=ALL-UNNAMED"
}
}