File tree Expand file tree Collapse file tree 4 files changed +21
-0
lines changed Expand file tree Collapse file tree 4 files changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -49,4 +49,8 @@ buildParameters {
4949 defaultValue.set(true )
5050 description.set(" Fail build on javadoc warnings" )
5151 }
52+ bool(" skipErrorProne" ) {
53+ defaultValue.set(false )
54+ description.set(" Skip Error Prone verifications" )
55+ }
5256}
Original file line number Diff line number Diff line change @@ -7,4 +7,5 @@ dependencies {
77 api(projects.basics)
88 api(" org.sonarqube:org.sonarqube.gradle.plugin:4.4.1.3373" )
99 api(" com.github.autostyle:autostyle-plugin-gradle:4.0" )
10+ api(" net.ltgt.gradle:gradle-errorprone-plugin:3.1.0" )
1011}
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+ id(" build-logic.build-params" )
6+ }
7+
8+ dependencies {
9+ errorprone(" com.google.errorprone:error_prone_core:2.20.0" )
10+ }
11+
12+ tasks.withType<JavaCompile >().configureEach {
13+ options.errorprone.isEnabled = ! buildParameters.skipErrorProne
14+ options.errorprone.disableWarningsInGeneratedCode.set(true )
15+ }
Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ plugins {
66 id(" testng.versioning" )
77 id(" testng.style" )
88 id(" testng.repositories" )
9+ id(" testng.errorprone" )
910 // Improves Gradle Test logging
1011 // See https://github.com/vlsi/vlsi-release-plugins/tree/master/plugins/gradle-extensions-plugin
1112 id(" com.github.vlsi.gradle-extensions" )
You can’t perform that action at this time.
0 commit comments