3f988d2c28
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 commit1ee03aa948
. This reverts commitcf97d694fe
. Change-Id: I199d2f1531ec2b59d4263f1b72f1c967913bb9a5
46 lines
1.0 KiB
Python
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",
|
|
],
|
|
)
|