Skip to content

Commit

Permalink
Add AutoOneOf plugin to auto_value rule
Browse files Browse the repository at this point in the history
Enables the use of @AutoOneOf annotations for tagged union style data
structures.

Partial commit for third_party/*, see bazelbuild#17089.

Signed-off-by: Sunil Gowroji <[email protected]>
  • Loading branch information
anakanemison authored and sgowroji committed Jan 2, 2023
1 parent 4d188a9 commit fd93888
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions third_party/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -297,10 +297,26 @@ java_plugin(
],
)

java_plugin(
name = "auto_oneof_plugin",
processor_class = "com.google.auto.value.processor.AutoOneOfProcessor",
deps = [
":apache_commons_collections",
":apache_velocity",
":asm",
":auto_common",
":auto_service_lib",
":auto_value_value",
":guava",
":tomcat_annotations_api",
],
)

java_library(
name = "auto_value",
exported_plugins = [
":auto_annotation_plugin",
":auto_oneof_plugin",
":auto_value_plugin",
],
exports = [
Expand Down

0 comments on commit fd93888

Please sign in to comment.