File tree Expand file tree Collapse file tree 3 files changed +18
-0
lines changed Expand file tree Collapse file tree 3 files changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ repositories {
1111dependencies {
1212 implementation(" org.sonarqube:org.sonarqube.gradle.plugin:2.8" )
1313 implementation(" com.github.autostyle:autostyle-plugin-gradle:3.1" )
14+ implementation(" net.ltgt.gradle:gradle-errorprone-plugin:3.1.0" )
1415}
1516
1617tasks.withType<KotlinCompile >().configureEach {
Original file line number Diff line number Diff line change 1+ import net.ltgt.gradle.errorprone.errorprone
2+
3+ plugins {
4+ id(" net.ltgt.errorprone" )
5+ }
6+
7+ dependencies {
8+ errorprone(" com.google.errorprone:error_prone_core:2.20.0" )
9+ }
10+
11+ tasks.withType<JavaCompile >().configureEach {
12+ options.errorprone.disableWarningsInGeneratedCode.set(true )
13+ }
Original file line number Diff line number Diff line change @@ -13,6 +13,10 @@ java {
1313 targetCompatibility = JavaVersion .VERSION_11
1414}
1515
16+ if (true /* buildParameters.enableErrorprone*/ ) {
17+ apply (plugin = " testng.errorprone" )
18+ }
19+
1620tasks.withType<JavaCompile >().configureEach {
1721 inputs.property(" java.version" , System .getProperty(" java.version" ))
1822 inputs.property(" java.vendor" , System .getProperty(" java.vendor" ))
You can’t perform that action at this time.
0 commit comments