gerrit/gerrit-reviewdb/BUILD
David Pursehouse 3f988d2c28 Revert refactoring of Account.USER_NAME_PATTERN
In changes I02ce9c6b6 ("Optimize USER_NAME_PATTERN string and its
usage") and I8082b2ad3 ("Account.java: introduce compiled pattern
and use where applicable"), the usage of Account.USER_NAME_PATTERN
was refactored.

This refactoring conflicts with separate refactoring that was done
on the master branch. Instead of trying to resolve the conflicts,
which ends up with the changes effectively being reverted, just
revert them here. The refactoring that was done on master can then
be backported here.

This reverts commit 1ee03aa948.
This reverts commit cf97d694fe.

Change-Id: I199d2f1531ec2b59d4263f1b72f1c967913bb9a5
2018-09-05 12:28:01 +09:00

46 lines
1.0 KiB
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",
visibility = ["//visibility:public"],
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/**/*"]),
visibility = ["//visibility:public"],
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",
],
)