-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathbuild.gradle
More file actions
65 lines (52 loc) · 1.82 KB
/
build.gradle
File metadata and controls
65 lines (52 loc) · 1.82 KB
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
//Uncomment lines related to errorprone to enable it, choosing to disable for now
buildscript {
repositories {
jcenter() // this applies only to the Gradle 'Shadow' plugin
}
dependencies {
classpath 'com.github.jengelman.gradle.plugins:shadow:5.2.0'
}
}
plugins {
// we assume you are already using the Java plugin
id 'com.github.johnrengelman.shadow' version '5.2.0'
}
apply plugin: 'java'
apply plugin: 'application'
group 'xyz.vivek'
version '1.0-SNAPSHOT'
apply plugin: 'com.github.johnrengelman.shadow'
mainClassName = 'xyz.viveks.simpledb.SimpleDb'
sourceCompatibility = 1.8
repositories {
mavenCentral()
flatDir {
dirs 'libs'
}
}
dependencies {
compile fileTree(dir: 'libs', include: '*.jar')
compile group: 'com.google.guava', name: 'guava', version: '23.5-jre'
implementation 'org.apache.commons:commons-lang3:3.9'
testCompile group: 'junit', name: 'junit', version: '4.12'
annotationProcessor "com.uber.nullaway:nullaway:0.7.9"
compileOnly 'org.projectlombok:lombok:1.18.10'
annotationProcessor 'org.projectlombok:lombok:1.18.10'
// Optional, some source of nullability annotations.
// Not required on Android if you use the support
// library nullability annotations.
compileOnly "com.google.code.findbugs:jsr305:3.0.2"
// errorprone "com.google.errorprone:error_prone_core:2.3.2"
// errorproneJavac "com.google.errorprone:javac:9+181-r4173-1"
}
//import net.ltgt.gradle.errorprone.CheckSeverity
//
//tasks.withType(JavaCompile) {
// // remove the if condition if you want to run NullAway on test code
// if (!name.toLowerCase().contains("test")) {
// options.errorprone {
// check("NullAway", CheckSeverity.ERROR)
// option("NullAway:AnnotatedPackages", "com.uber")
// }
// }
//}