gerrit/gerrit-lucene/BUILD
Dave Borowitz e47be68709 Move general index classes from gerrit-server to gerrit-index
These classes do not depend on any Gerrit server functionality, and
could even be used to define an index without depending on the
gerrit-server package. This allows for a clearer separation of BUILD
rules; the QueryParser and antlr targets don't escape the gerrit-index
package.

The general layout thus far is to put index definition code in
com.google.gerrit.index, and query-related code (predicates, etc.)  in
com.google.gerrit.index.query.

The gerrit-index package is still of limited utility on its own, because
QueryProcessor and InternalQuery still live in the server package, and
untangling their dependencies will still be a bit more work.

Change-Id: I3c4616d08ecf19d5ccd1b9b91b3fd0b1fcedd901
2017-08-14 15:40:09 -04:00

47 lines
1.2 KiB
Python

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",
],
)