blob: b60a10199e241d4ac865398f3926ce7a0ce7060b [file] [log] [blame]
load("@rules_java//java:defs.bzl", "java_library", "java_plugin")
java_plugin(
name = "auto-annotation-plugin",
processor_class = "com.google.auto.value.processor.AutoAnnotationProcessor",
deps = [
"@auto-value-annotations//jar",
"@auto-value//jar",
],
)
java_plugin(
name = "auto-value-plugin",
processor_class = "com.google.auto.value.processor.AutoValueProcessor",
deps = [
"@auto-value-annotations//jar",
"@auto-value//jar",
],
)
java_library(
name = "auto-value",
data = ["//lib:LICENSE-Apache2.0"],
exported_plugins = [
":auto-annotation-plugin",
":auto-value-plugin",
],
visibility = ["//visibility:public"],
exports = ["@auto-value//jar"],
)
java_library(
name = "auto-value-annotations",
data = ["//lib:LICENSE-Apache2.0"],
exported_plugins = [
":auto-annotation-plugin",
":auto-value-plugin",
],
visibility = ["//visibility:public"],
exports = ["@auto-value-annotations//jar"],
)