1fa4bcfb6e
For packages having a default visiblity defined, it is redundant to also set the same visibility per package, so remove those. For packages that only have one rule, and its visibility differs from the default visibility, remove the default visibility. Also clean up wrapping of some of the default definitions. Change-Id: I9e81c3f724b4ffde7a652b485d33c650866ad122
42 lines
938 B
Python
42 lines
938 B
Python
package(default_visibility = ["//visibility:public"])
|
|
|
|
load("//tools/bzl:gwt.bzl", "gwt_module")
|
|
load("//tools/bzl:junit.bzl", "junit_tests")
|
|
|
|
SRC = "src/main/java/com/google/gerrit/reviewdb/"
|
|
|
|
TESTS = "src/test/java/com/google/gerrit/reviewdb/"
|
|
|
|
gwt_module(
|
|
name = "client",
|
|
srcs = glob([SRC + "client/**/*.java"]),
|
|
gwt_xml = SRC + "ReviewDB.gwt.xml",
|
|
deps = [
|
|
"//gerrit-extension-api:client",
|
|
"//lib:gwtorm-client",
|
|
"//lib:gwtorm-client_src",
|
|
],
|
|
)
|
|
|
|
java_library(
|
|
name = "server",
|
|
srcs = glob([SRC + "**/*.java"]),
|
|
resources = glob(["src/main/resources/**/*"]),
|
|
deps = [
|
|
"//gerrit-extension-api:api",
|
|
"//lib:guava",
|
|
"//lib:gwtorm",
|
|
],
|
|
)
|
|
|
|
junit_tests(
|
|
name = "client_tests",
|
|
srcs = glob([TESTS + "client/**/*.java"]),
|
|
deps = [
|
|
":client",
|
|
"//gerrit-server:testutil",
|
|
"//lib:gwtorm",
|
|
"//lib:truth",
|
|
],
|
|
)
|