blob: 62546ea72e9707088da4c217db0f53507158c6ba [file] [log] [blame]
load("@rules_java//java:defs.bzl", "java_library")
QUERY_BUILDER = [
"src/main/java/com/google/gerrit/lucene/QueryBuilder.java",
]
java_library(
name = "query_builder",
srcs = QUERY_BUILDER,
visibility = ["//visibility:public"],
deps = [
"//gerrit-index:index",
"//gerrit-index:query_exception",
"//gerrit-reviewdb:server",
"//gerrit-server:server",
"//lib:guava",
"//lib:gwtorm",
"//lib/lucene:lucene-core-and-backward-codecs",
],
)
java_library(
name = "lucene",
srcs = glob(
["src/main/java/**/*.java"],
exclude = QUERY_BUILDER,
),
visibility = ["//visibility:public"],
deps = [
":query_builder",
"//gerrit-common:annotations",
"//gerrit-common:server",
"//gerrit-extension-api:api",
"//gerrit-index:index",
"//gerrit-index:query_exception",
"//gerrit-reviewdb:server",
"//gerrit-server:server",
"//lib:guava",
"//lib:gwtorm",
"//lib/guice",
"//lib/guice:guice-assistedinject",
"//lib/jgit/org.eclipse.jgit:jgit",
"//lib/log:api",
"//lib/lucene:lucene-analyzers-common",
"//lib/lucene:lucene-core-and-backward-codecs",
"//lib/lucene:lucene-misc",
],
)