mirror of
https://github.com/google/nomulus.git
synced 2025-05-02 13:07:50 +02:00
Getting rid of builder boilerplate makes my heart sing. Since we can no longer @Inject the Builder() constructor, this change adds a provider in WhiteboxModule that calls a special builderForRequest() factory method, which gets passed a request ID and Clock and preserves the existing EppMetric magic that sets the start and end time for you. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=132714432
46 lines
1.5 KiB
Text
46 lines
1.5 KiB
Text
package(
|
|
default_visibility = ["//java/google/registry:registry_project"],
|
|
)
|
|
|
|
licenses(["notice"]) # Apache 2.0
|
|
|
|
|
|
java_library(
|
|
name = "tools",
|
|
srcs = glob(["*.java"]),
|
|
deps = [
|
|
"//java/com/google/common/base",
|
|
"//java/com/google/common/collect",
|
|
"//third_party/java/bouncycastle",
|
|
"//third_party/java/dagger",
|
|
"//third_party/java/jsr305_annotations",
|
|
"//third_party/java/jsr330_inject",
|
|
"//third_party/java/servlet/servlet_api",
|
|
"//java/google/registry/config",
|
|
"//java/google/registry/export",
|
|
"//java/google/registry/flows",
|
|
"//java/google/registry/gcs",
|
|
"//java/google/registry/groups",
|
|
"//java/google/registry/keyring/api",
|
|
"//java/google/registry/loadtest",
|
|
"//java/google/registry/mapreduce",
|
|
"//java/google/registry/monitoring/whitebox",
|
|
"//java/google/registry/request",
|
|
"//java/google/registry/request:modules",
|
|
"//java/google/registry/tools/server",
|
|
"//java/google/registry/tools/server/javascrap",
|
|
"//java/google/registry/util",
|
|
],
|
|
)
|
|
|
|
# This rule is used so bazel can generate "tools_jar_deploy.jar" (which
|
|
# contains transitive dependencies) for deployment to App Engine. It MUST
|
|
# explicitly depend upon upon anything loaded at runtime, e.g. old servlets
|
|
# referenced by the module's web.xml file, that isn't statically linked above.
|
|
java_binary(
|
|
name = "tools_jar",
|
|
create_executable = 0,
|
|
runtime_deps = [
|
|
":tools",
|
|
],
|
|
)
|