@@ -7,7 +7,7 @@ buildscript {
77plugins {
88 id ' net.minecrell.licenser' version ' 0.3'
99 id " com.github.sherter.google-java-format" version " 0.6"
10- id " net.ltgt.errorprone" version " 0.0.13 "
10+ id " net.ltgt.errorprone" version " 0.6 "
1111}
1212
1313repositories {
@@ -45,6 +45,8 @@ sourceCompatibility = 1.8
4545targetCompatibility = 1.8
4646
4747dependencies {
48+ errorproneJavac(" com.google.errorprone:javac:9+181-r4173-1" )
49+ errorprone(" com.google.errorprone:error_prone_core:2.3.1" )
4850 compile group : ' com.uber.tchannel' , name : ' tchannel-core' , version : ' 0.8.5'
4951 compile group : ' org.slf4j' , name : ' slf4j-api' , version : ' 1.7.25'
5052 compile group : ' org.apache.thrift' , name : ' libthrift' , version : ' 0.9.3'
@@ -65,8 +67,8 @@ license {
6567compileJava {
6668 dependsOn ' googleJavaFormat'
6769 options. encoding = ' UTF-8'
68- options. compilerArgs << " -Xlint:unchecked" << " -Xlint:deprecation" << " -XepExcludedPaths: " +
69- " .*/generated-sources/.*" << " -Werror "
70+ options. compilerArgs << " -Xlint:unchecked" << " -Xlint:deprecation" << " -Werror "
71+ options . errorprone . errorproneArgs << " -XepExcludedPaths: .*/generated-sources/.*"
7072}
7173
7274// Generation version.properties for value to be included into the request header
@@ -90,8 +92,8 @@ classes {
9092
9193compileTestJava {
9294 options. encoding = ' UTF-8'
93- options. compilerArgs << " -Xlint:unchecked" << " -Xlint:deprecation" << " -XepExcludedPaths: " +
94- " .*/generated-sources/.*" << " -Werror "
95+ options. compilerArgs << " -Xlint:unchecked" << " -Xlint:deprecation" << " -Werror "
96+ options . errorprone . errorproneArgs << " -XepExcludedPaths: .*/generated-sources/.*"
9597}
9698
9799if (JavaVersion . current(). isJava8Compatible()) {
0 commit comments