-
Notifications
You must be signed in to change notification settings - Fork 213
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add missing javax.annotation dependency (#320)
* Add missing javax.annotation dependency Fixes #321. Bazel/Dagger integration requires javax.annotation to be on the classpath to generate @generated annotation. Recent ErrorProne releases (started from 2.3.3) added new bug pattern: RefersToDaggerCodegen that is flagging the code as invalid, as it doesn't realize that the code is generated. Due to this problem, a previous attemt to bump EP version in Bazel was reverted. Fixing it would allow us to make another attempt to update EP version in Bazel. Test Plan: A. Involved approach: 1. Bump EP version to 2.3.4 in Bazel 2. Conduct custom java tools release with new EP version 3. Consume custom java tools release in WORKSPACE in rules_kotlin 4. Trying to bulid rules_kotlin would fail with RefersToDaggerCodegen error B. Simple approach: 1. Apply this patch 2. Build rules_kotlin 3. Confirm that this class: KotlinBuilderComponent_Module_ProvidePluginArgEncoderFactory is annotated with @generated annotation: @generated( value = "dagger.internal.codegen.ComponentProcessor", comments = "https://dagger.dev" ) @SuppressWarnings({ "unchecked", "rawtypes" }) public final class KotlinBuilderComponent_Module_ProvidePluginArgEncoderFactory [...] * Add javax.annotation to test_lib rule * compile.bzl: Remove superfluous paren * Run buildifier on BUILD files
- Loading branch information
Showing
5 changed files
with
10 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters