File tree 1 file changed +24
-0
lines changed
1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change 17
17
* - ASL 2.0: http://www.apache.org/licenses/LICENSE-2.0.txt
18
18
*/
19
19
20
+ plugins {
21
+ id(" net.ltgt.errorprone" ) version " 0.8.1" apply false
22
+ }
23
+
20
24
apply(plugin : " java" );
21
25
apply(plugin : " maven" );
22
26
apply(plugin : " signing" );
23
27
apply(plugin : " osgi" );
24
28
apply(plugin : " idea" );
25
29
apply(plugin : " eclipse" );
30
+ apply(plugin : " net.ltgt.errorprone" );
26
31
27
32
group = " com.github.java-json-tools" ;
28
33
version = " 2.2.12-SNAPSHOT" ;
@@ -36,6 +41,14 @@ repositories {
36
41
mavenCentral();
37
42
}
38
43
44
+ /*
45
+ * Add errorprone checking.
46
+ */
47
+ dependencies {
48
+ errorprone(" com.google.errorprone:error_prone_core:2.3.3" )
49
+ errorproneJavac(" com.google.errorprone:javac:9+181-r4173-1" )
50
+ }
51
+
39
52
/*
40
53
* List of dependencies
41
54
*/
@@ -87,6 +100,17 @@ task sourcesJar(type: Jar, dependsOn: classes) {
87
100
from sourceSets. main. allSource;
88
101
}
89
102
103
+ /*
104
+ * Lint all the things!
105
+ */
106
+ allprojects {
107
+ gradle. projectsEvaluated {
108
+ tasks. withType(JavaCompile ) {
109
+ options. compilerArgs << " -Xlint:all"
110
+ }
111
+ }
112
+ }
113
+
90
114
/*
91
115
* Javadoc: we need to tell where the overview.html is, it will not pick it up
92
116
* automatically...
You can’t perform that action at this time.
0 commit comments