-
Notifications
You must be signed in to change notification settings - Fork 11
/
build.gradle
52 lines (41 loc) · 1.15 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
apply plugin: 'java'
sourceCompatibility = 1.8
targetCompatibility = 1.8
repositories {
mavenCentral()
}
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath "io.spring.gradle:dependency-management-plugin:1.0.3.RELEASE"
}
}
apply plugin: "io.spring.dependency-management"
dependencyManagement {
imports {
mavenBom 'com.amazonaws:aws-java-sdk-bom:1.11.731'
}
}
configurations {
// for putting Error Prone javac in bootclasspath for running tests
// on Java 8 JDKs
errorproneJavac
}
dependencies {
testCompile group: 'junit', name: 'junit', version: '4.12'
testCompile group: 'org.checkerframework', name: 'framework-test', version: '3.2.+'
compile group: 'org.checkerframework', name: 'checker', version: '3.2.+'
implementation "com.google.errorprone:javac:9+181-r4173-1"
errorproneJavac "com.google.errorprone:javac:9+181-r4173-1"
}
task copyDependencies(type: Copy) {
from configurations.compile
into 'dependencies'
}
test {
if (!JavaVersion.current().java9Compatible) {
jvmArgs "-Xbootclasspath/p:${configurations.errorproneJavac.asPath}"
}
}