-
Notifications
You must be signed in to change notification settings - Fork 10
/
build.gradle
86 lines (65 loc) · 2.56 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
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.8.4'
}
}
plugins {
id "com.github.hierynomus.license" version "0.11.0"
id 'com.github.kt3k.coveralls' version '2.4.0'
}
apply plugin: 'java-library'
apply plugin: "jacoco"
apply plugin: 'idea'
apply from: 'license.gradle'
apply from: 'release.gradle'
apply plugin: 'pmd'
apply plugin: 'com.github.kt3k.coveralls'
sourceCompatibility = 17
// Release version that won't conflict with the bintray plugin
group = "net.saliman"
archivesBaseName = "spring-boot-starter-request-correlation"
// Java 17 started getting a lot pickier about opening classes to other classes. Tests will need
// some "opens" to work properly.
tasks.withType(Test).configureEach{
jvmArgs = jvmArgs + ['--add-opens=java.base/java.lang=ALL-UNNAMED']
jvmArgs = jvmArgs + ['--add-opens=java.base/java.lang.invoke=ALL-UNNAMED']
jvmArgs = jvmArgs + ['--add-opens=java.base/java.util=ALL-UNNAMED']
jvmArgs = jvmArgs + ['--add-opens=java.base/java.net=ALL-UNNAMED']
jvmArgs = jvmArgs + ['--add-opens=java.base/java.nio.charset=ALL-UNNAMED']
jvmArgs = jvmArgs + ['--add-opens=java.base/java.time=ALL-UNNAMED']
jvmArgs = jvmArgs + ['--add-opens=java.base/java.util.concurrent.atomic=ALL-UNNAMED']
jvmArgs = jvmArgs + ['--add-opens=java.base/java.util.stream=ALL-UNNAMED']
jvmArgs = jvmArgs + ['--add-opens=java.prefs/java.util.prefs=ALL-UNNAMED']
}
jar {
manifest {
attributes 'Implementation-Title': 'spring-boot-starter-request-correlation',
'Implementation-Version': version
}
}
repositories {
jcenter()
}
configurations {
archives
}
compileJava {
options.fork = true
}
dependencies {
api "org.apache.commons:commons-lang3:${commonsLangVersion}"
// For Spring RestTemplate
implementation "org.springframework.boot:spring-boot-starter-web:${springBootVersion}"
// For Spring WebClient
implementation "org.springframework.boot:spring-boot-starter-webflux:${springBootVersion}"
// For Feign
implementation "org.springframework.cloud:spring-cloud-starter-openfeign:${feignVersion}"
implementation "io.github.openfeign:feign-hc5:${feignHttpVersion}"
annotationProcessor "org.springframework.boot:spring-boot-configuration-processor:${springBootVersion}"
testImplementation "org.springframework.boot:spring-boot-starter-test:${springBootVersion}"
testImplementation "junit:junit:${junitVersion}"
testImplementation "org.mockito:mockito-all:${mockitoVersion}"
}