Skip to content
This repository has been archived by the owner on Nov 14, 2024. It is now read-only.

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