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
Fixes bazelbuild#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 2. Conduct custom java tools release with new EP version 3. Consume custom java tools release in WORKSPACE 4. Try to bulid rule_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 [...]
- Loading branch information