Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ val disableErrorProne = properties["disableErrorProne"]?.toString()?.toBoolean()
tasks {
withType<JavaCompile>().configureEach {
with(options) {
// Error Prone 2.45.0+ requires this flag when running on JDK 21
// See: https://github.com/google/error-prone/releases/tag/v2.45.0
compilerArgs.add("-XDaddTypeAnnotationsToSymbol=true")

errorprone {
if (disableErrorProne) {
logger.warn("Errorprone has been disabled. Build may not result in a valid PR build.")
Expand Down