1load("@rules_java//java:defs.bzl", "java_library", "java_plugin") 2load( 3 "//:build_defs.bzl", 4 "DOCLINT_HTML_AND_SYNTAX", 5 "POM_VERSION", 6) 7load("//tools:maven.bzl", "pom_file") 8load("@google_bazel_common//tools/javadoc:javadoc.bzl", "javadoc_library") 9 10package(default_visibility = ["//:src"]) 11 12java_library( 13 name = "processor", 14 srcs = glob(["*.java"]), 15 javacopts = DOCLINT_HTML_AND_SYNTAX, 16 tags = ["maven_coordinates=com.google.dagger:dagger-grpc-server-processor:" + POM_VERSION], 17 deps = [ 18 "//:dagger_with_compiler", 19 "//java/dagger/grpc/server:annotations", 20 "//java/dagger/internal/guava:base", 21 "//java/dagger/internal/guava:collect", 22 "//java/dagger/internal/guava:io", 23 "@google_bazel_common//third_party/java/auto:service", 24 "@google_bazel_common//third_party/java/google_java_format", 25 "@google_bazel_common//third_party/java/javapoet", 26 "@google_bazel_common//third_party/java/jsr250_annotations", 27 "@maven//:com_google_auto_auto_common", 28 ], 29) 30 31pom_file( 32 name = "pom", 33 artifact_id = "dagger-grpc-server-processor", 34 artifact_name = "Dagger gRPC Server Processor", 35 targets = [":processor"], 36) 37 38java_plugin( 39 name = "plugin", 40 generates_api = 1, 41 processor_class = "dagger.grpc.server.processor.GrpcServiceProcessor", 42 deps = [":processor"], 43) 44 45filegroup( 46 name = "javadoc-srcs", 47 srcs = glob(["*.java"]), 48) 49 50javadoc_library( 51 name = "javadoc", 52 srcs = [":javadoc-srcs"], 53 root_packages = ["dagger.grpc.server.processor"], 54 deps = [":processor"], 55) 56