-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
74 lines (60 loc) · 2.03 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
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.google.gradle:osdetector-gradle-plugin:1.6.2'
classpath 'io.spring.gradle:dependency-management-plugin:1.0.10.RELEASE'
}
}
plugins {
id "net.rdrei.android.buildtimetracker" version "0.11.0"
}
allprojects {
repositories {
mavenCentral()
}
}
apply from: "${rootDir}/gradle/scripts/build-flags.gradle"
buildtimetracker {
reporters {
summary {
ordered false
barstyle "unicode"
}
}
}
configure(projectsWithFlags('java')) {
// Common dependencies
dependencies {
if (project != project(':core')) {
api project(':core')
}
implementation 'com.google.guava:guava'
implementation 'org.slf4j:slf4j-api'
implementation 'com.google.code.findbugs:jsr305'
if (project != project(':testing-internal')) {
testImplementation project(':testing-internal')
}
testImplementation 'org.junit.jupiter:junit-jupiter-api'
testImplementation 'org.junit.jupiter:junit-jupiter-params'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine'
testRuntimeOnly 'org.junit.platform:junit-platform-commons'
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
testRuntimeOnly 'org.junit.platform:junit-platform-engine'
testRuntimeOnly 'io.projectreactor.tools:blockhound-junit-platform'
testImplementation 'org.assertj:assertj-core'
testImplementation 'io.projectreactor:reactor-test'
testImplementation 'org.mockito:mockito-junit-jupiter'
testImplementation 'org.awaitility:awaitility'
}
tasks.withType(JavaCompile) {
options.compilerArgs += '-Xlint:unchecked'
}
tasks.withType(Test) {
// https://github.com/reactor/BlockHound/issues/33
if (JavaVersion.current().isCompatibleWith(JavaVersion.VERSION_13)) {
jvmArgs += '-XX:+AllowRedefinitionToAddDeleteMethods'
}
}
}