blob: e01d91b3ebb624851cdbd46f0836d0f87411935e [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-factory-plugin",
generates_api = 1,
processor_class = "com.google.auto.factory.processor.AutoFactoryProcessor",
visibility = ["//visibility:private"],
deps = [
"@auto-common//jar",
"@auto-factory//jar",
"@auto-service-annotations//jar",
"@auto-value-annotations//jar",
"@auto-value//jar",
"@guava//jar",
"@javapoet//jar",
"@javax_inject//jar",
],
)
java_plugin(
name = "auto-value-plugin",
processor_class = "com.google.auto.value.processor.AutoValueProcessor",
deps = [
"@auto-value-annotations//jar",
"@auto-value//jar",
],
)
java_plugin(
name = "auto-oneof-plugin",
processor_class = "com.google.auto.value.processor.AutoOneOfProcessor",
deps = [
"@auto-value-annotations//jar",
"@auto-value//jar",
],
)
java_plugin(
name = "auto-value-gson-plugin",
processor_class = "com.ryanharter.auto.value.gson.factory.AutoValueGsonAdapterFactoryProcessor",
deps = [
"@auto-value-annotations//jar",
"@auto-value-gson-extension//jar",
"@auto-value-gson-factory//jar",
"@auto-value-gson-runtime//jar",
"@auto-value//jar",
"@autotransient//jar",
"@gson//jar",
"@javapoet//jar",
],
)
java_library(
name = "auto-factory",
data = ["//lib:LICENSE-Apache2.0"],
exported_plugins = [
":auto-factory-plugin",
],
visibility = ["//visibility:public"],
exports = ["@auto-factory//jar"],
)
java_library(
name = "auto-value",
data = ["//lib:LICENSE-Apache2.0"],
exported_plugins = [
":auto-annotation-plugin",
":auto-value-plugin",
":auto-oneof-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",
":auto-oneof-plugin",
],
visibility = ["//visibility:public"],
exports = ["@auto-value-annotations//jar"],
)
java_library(
name = "auto-value-gson",
data = ["//lib:LICENSE-Apache2.0"],
exported_plugins = [
":auto-value-gson-plugin",
],
visibility = ["//visibility:public"],
exports = [
"@auto-value-gson-extension//jar",
"@auto-value-gson-factory//jar",
"@auto-value-gson-runtime//jar",
],
)