Files
gerrit/gerrit-lucene/BUCK
David Ostrovsky 020d76b7f9 BUCK: fix linking with Lucene
Make gerrit-lucene depend on reviewdb-server instead of -client.
This enables artifacts which depend on gerrit-lucene and on
reviewdb-server (gerrit-pgm) to be combined together into a
java_binary(). Otherwise it would not be possible because of
duplicate classes: reviewdb-server.jar contains classes in common
with reviewdb-client.jar.

The same holds true for LICENSE.txt and NOTICE.txt:
skip these files from Maven artifacts lucene-core.jar and
lucene-analyzers-common.jar. Otherwise it wouldn't be possible to
put artifacts which depend on gerrit-lucene into a java_binary().

Change-Id: I20a7f087b517a6ddadf58e88890fe68505177d48
2013-06-19 09:15:22 -07:00

19 lines
426 B
Python

java_library(
name = 'lucene',
srcs = glob(['src/main/java/**/*.java']),
deps = [
'//gerrit-antlr:query_exception',
'//gerrit-extension-api:api',
'//gerrit-reviewdb:server',
'//gerrit-server:server',
'//lib:guava',
'//lib:gwtorm',
'//lib:lucene-analyzers-common',
'//lib:lucene-core',
'//lib/guice:guice',
'//lib/jgit:jgit',
'//lib/log:api',
],
visibility = ['PUBLIC'],
)