Skip to content

Commit 53a1a0e

Browse files
committed
Add errorprone checking.
And a fix to the signing requirements error.
1 parent 39bc0f1 commit 53a1a0e

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

build.gradle

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,17 @@
1717
* - ASL 2.0: http://www.apache.org/licenses/LICENSE-2.0.txt
1818
*/
1919

20+
plugins {
21+
id("net.ltgt.errorprone") version "0.8.1" apply false
22+
}
23+
2024
apply(plugin: "java");
2125
apply(plugin: "maven");
2226
apply(plugin: "signing");
2327
apply(plugin: "osgi");
2428
apply(plugin: "idea");
2529
apply(plugin: "eclipse");
30+
apply(plugin: "net.ltgt.errorprone");
2631

2732
apply(from: "project.gradle");
2833

@@ -35,6 +40,14 @@ repositories {
3540
mavenCentral();
3641
}
3742

43+
/*
44+
* Add errorprone checking.
45+
*/
46+
dependencies {
47+
errorprone("com.google.errorprone:error_prone_core:2.3.3")
48+
errorproneJavac("com.google.errorprone:javac:9+181-r4173-1")
49+
}
50+
3851
/*
3952
* Necessary! Otherwise TestNG will not be used...
4053
*
@@ -116,7 +129,7 @@ task checkSigningRequirements {
116129
requiredProperties.each {
117130
if (project.properties[it] == null) {
118131
noDice = true;
119-
System.err.printf("property \"%s\" is not defined!")
132+
System.err.printf("property \"%s\" is not defined!\n")
120133
}
121134
}
122135
if (noDice)

0 commit comments

Comments
 (0)