This is long overdue renaming step to manifest that SQL database is removed from gerrit core. Moreover, client/server package division was needed due to GWT UI that was removed as well in release 3.0. Bug: Issue 11678 Change-Id: Icfd83a309a6affac54141e7284e70f1255537dc4
51 lines
1.2 KiB
Python
51 lines
1.2 KiB
Python
load("@rules_java//java:defs.bzl", "java_library")
|
|
|
|
ANNOTATIONS = [
|
|
"Nullable.java",
|
|
"UsedAt.java",
|
|
]
|
|
|
|
java_library(
|
|
name = "annotations",
|
|
srcs = ANNOTATIONS,
|
|
visibility = ["//visibility:public"],
|
|
deps = ["//lib:guava"],
|
|
)
|
|
|
|
java_library(
|
|
name = "server",
|
|
srcs = glob(
|
|
["**/*.java"],
|
|
exclude = ANNOTATIONS,
|
|
),
|
|
visibility = ["//visibility:public"],
|
|
deps = [
|
|
":annotations",
|
|
"//java/com/google/gerrit/entities",
|
|
"//java/com/google/gerrit/extensions:api",
|
|
"//java/com/google/gerrit/prettify:server",
|
|
"//lib:guava",
|
|
"//lib:jgit",
|
|
"//lib:servlet-api",
|
|
"//lib/auto:auto-value",
|
|
"//lib/auto:auto-value-annotations",
|
|
"//lib/flogger:api",
|
|
],
|
|
)
|
|
|
|
# ":version" should not be in the dependency graph of the acceptance
|
|
# tests to avoid spurious test re-runs. That's because the content of
|
|
# //:version.txt is changed when the outcome of `git describe` is changed.
|
|
java_library(
|
|
name = "version",
|
|
resources = [":Version"],
|
|
visibility = ["//visibility:public"],
|
|
)
|
|
|
|
genrule(
|
|
name = "gen_version",
|
|
srcs = ["//:version.txt"],
|
|
outs = ["Version"],
|
|
cmd = "cat $< > $@",
|
|
)
|