diff --git a/atlasdb-cassandra/build.gradle b/atlasdb-cassandra/build.gradle index 15ee3102aba..20b8cacc258 100644 --- a/atlasdb-cassandra/build.gradle +++ b/atlasdb-cassandra/build.gradle @@ -141,3 +141,12 @@ recommendedProductDependencies { maximumVersion = '6.x.x' } } +// AutoServiceProcessor can incorrectly throw error for local, incremental builds +tasks.withType(JavaCompile).configureEach { + doFirst { + def isLocal = !System.getenv().containsKey("CI") + if (isLocal) { + options.compilerArgs << '-Averify=false' + } + } +} diff --git a/atlasdb-dbkvs/build.gradle b/atlasdb-dbkvs/build.gradle index ee2d46ed5b8..8802f43d479 100644 --- a/atlasdb-dbkvs/build.gradle +++ b/atlasdb-dbkvs/build.gradle @@ -51,3 +51,12 @@ dependencies { compileOnly 'org.immutables:value::annotations' compileOnly project(":atlasdb-processors") } +// AutoServiceProcessor can incorrectly throw error for local, incremental builds +tasks.withType(JavaCompile).configureEach { + doFirst { + def isLocal = !System.getenv().containsKey("CI") + if (isLocal) { + options.compilerArgs << '-Averify=false' + } + } +} diff --git a/changelog/@unreleased/pr-7063.v2.yml b/changelog/@unreleased/pr-7063.v2.yml new file mode 100644 index 00000000000..9e2692a887c --- /dev/null +++ b/changelog/@unreleased/pr-7063.v2.yml @@ -0,0 +1,5 @@ +type: fix +fix: + description: ignore AutoService warnings locally + links: + - https://github.com/palantir/atlasdb/pull/7063