mirror of
https://github.com/google/nomulus.git
synced 2025-04-30 03:57:51 +02:00
This adds a home in our opensource repo for python libraries and binaries, under a top-level "python" directory. Future CLs will relocate ICANN reporting bits and pieces to new homes under this directory, and will use the MOE configuration and python_directory_import rule defined here. This approach is roughly modeled on the protobuf Bazel opensource project, which also uses a top-level directory for various languages, and also uses the "imports" parameter to exclude that directory in python module names: https://github.com/google/protobuf/blob/v3.0.0-beta-3/BUILD#L568 ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=127459882
33 lines
856 B
Text
33 lines
856 B
Text
package(
|
|
default_testonly = 1,
|
|
default_visibility = ["//java/google/registry:registry_project"],
|
|
)
|
|
|
|
licenses(["notice"]) # Apache 2.0
|
|
|
|
load("//java/com/google/testing/builddefs:GenTestRules.bzl", "GenTestRules")
|
|
|
|
|
|
java_library(
|
|
name = "xml",
|
|
srcs = glob(["*.java"]),
|
|
resources = glob(["testdata/*.xml"]),
|
|
deps = [
|
|
"//java/com/google/common/base",
|
|
"//java/com/google/common/collect",
|
|
"//java/com/google/common/net",
|
|
"//third_party/java/joda_time",
|
|
"//third_party/java/json",
|
|
"//third_party/java/jsr305_annotations",
|
|
"//third_party/java/junit",
|
|
"//third_party/java/truth",
|
|
"//java/google/registry/util",
|
|
"//java/google/registry/xml",
|
|
],
|
|
)
|
|
|
|
GenTestRules(
|
|
name = "GeneratedTestRules",
|
|
test_files = glob(["*Test.java"]),
|
|
deps = [":xml"],
|
|
)
|