-
Notifications
You must be signed in to change notification settings - Fork 34
/
build.gradle
151 lines (123 loc) · 3.92 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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
buildscript {
repositories {
jcenter()
mavenCentral()
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:2.2.9.RELEASE")
}
}
plugins {
id 'io.franzbecker.gradle-lombok' version '4.0.0' apply false
id "com.google.protobuf" version "0.8.16" apply false
}
allprojects {
repositories {
jcenter()
mavenCentral()
maven { url "https://repo.spring.io/milestone" }
maven { url 'https://jitpack.io' }
}
task downloadDependencies {
doLast {
configurations.all {
try {
it.files
} catch (e) {
project.logger.info(e.message)
}
}
}
}
}
configure(subprojects.findAll { !it.name.startsWith("examples/") }) {
apply plugin: 'io.spring.dependency-management'
apply plugin: 'io.franzbecker.gradle-lombok'
apply plugin: 'maven-publish'
apply plugin: 'java'
apply from: "$rootDir/gradle/rerunTests.gradle"
sourceCompatibility = targetCompatibility = 11
tasks.withType(JavaCompile) {
options.compilerArgs = [
'-Xlint:deprecation',
'-Werror'
]
}
lombok {
version = '1.18.20'
}
test {
useJUnitPlatform()
testLogging {
displayGranularity 1
showStackTraces = true
exceptionFormat = 'full'
events "STARTED", "PASSED", "FAILED", "SKIPPED"
}
}
jar {
manifest {
attributes(
'Manifest-Version': '1.0',
'Implementation-Version': "${project.version}",
'Implementation-Title': "${project.name}"
)
}
}
publishing {
publications {
maven(MavenPublication) {
from components.java
versionMapping {
usage('java-api') {
fromResolutionOf('runtimeClasspath')
}
usage('java-runtime') {
fromResolutionResult()
}
}
}
}
}
task install {
dependsOn tasks.publishToMavenLocal
dependsOn tasks.findByName("assemble")
}
dependencyManagement {
overriddenByDependencies = false
imports {
mavenBom 'org.junit:junit-bom:5.7.2'
mavenBom org.springframework.boot.gradle.plugin.SpringBootPlugin.BOM_COORDINATES
mavenBom 'org.testcontainers:testcontainers-bom:1.16.0'
// pinned to 1.23.1, see https://github.com/grpc/grpc-java/issues/6707
mavenBom 'io.grpc:grpc-bom:1.23.1'
mavenBom 'com.google.protobuf:protobuf-bom:3.10.0'
mavenBom 'io.rsocket:rsocket-bom:1.1.0'
}
dependencies {
dependency 'org.pf4j:pf4j:3.1.0'
dependencySet(group: 'io.rsocket.rpc', version: '0.3.0') {
entry 'rsocket-rpc-core'
entry 'rsocket-rpc-protobuf'
}
dependency 'org.springframework.fu:spring-fu-jafu:0.3.2'
dependency 'com.google.protobuf:protoc:3.10.1'
dependency 'com.google.auto.service:auto-service:1.0'
// Override kafka-clients' version, otherwise it comes from Spring Boot
dependency 'org.apache.kafka:kafka-clients:2.3.1'
dependency 'com.salesforce.servicelibs:reactor-grpc-stub:0.10.0'
dependency 'org.awaitility:awaitility:4.1.0'
}
}
dependencies {
testImplementation 'org.junit.jupiter:junit-jupiter'
}
configurations {
compileOnlyClasspath {
// https://discuss.gradle.org/t/what-is-a-configuration-which-cant-be-directly-resolved/30721
extendsFrom compileOnly
canBeConsumed false
canBeResolved true
}
}
}