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
This commit is contained in:
David Ostrovsky
2013-06-18 17:52:29 +02:00
committed by Shawn Pearce
parent d634bc612e
commit 020d76b7f9
2 changed files with 9 additions and 1 deletions

View File

@@ -4,7 +4,7 @@ java_library(
deps = [
'//gerrit-antlr:query_exception',
'//gerrit-extension-api:api',
'//gerrit-reviewdb:client',
'//gerrit-reviewdb:server',
'//gerrit-server:server',
'//lib:guava',
'//lib:gwtorm',

View File

@@ -253,6 +253,10 @@ maven_jar(
bin_sha1 = 'd4e40fe5661b8de5d8c66db3d63a47b6b3ecf7f3',
src_sha1 = '86c29288b1930e33ba7ffea1b866af9a52d3d24a',
license = 'Apache2.0',
exclude = [
'META-INF/LICENSE.txt',
'META-INF/NOTICE.txt',
],
)
maven_jar(
@@ -261,4 +265,8 @@ maven_jar(
bin_sha1 = 'e7c3976156d292f696016e138b67ab5e6bfc1a56',
src_sha1 = '3606622b3c1f09b4b7cf34070cbf60d414af9b6b',
license = 'Apache2.0',
exclude = [
'META-INF/LICENSE.txt',
'META-INF/NOTICE.txt',
],
)