Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ignore AutoService warnings locally #7063

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
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
9 changes: 9 additions & 0 deletions atlasdb-cassandra/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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'
}
}
}
9 changes: 9 additions & 0 deletions atlasdb-dbkvs/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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'
}
}
}
5 changes: 5 additions & 0 deletions changelog/@unreleased/pr-7063.v2.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
type: fix
fix:
description: ignore AutoService warnings locally
links:
- https://github.com/palantir/atlasdb/pull/7063