Lucene: Add back the core-and-backward-codecs target

This is needed after the upgrade to Lucene 5.4.1.

This partially reverts commit fc70ea3961.

Change-Id: Ie8f4449a08ff951278863bddf39016a951a05067
This commit is contained in:
David Pursehouse
2016-02-08 14:35:55 +09:00
parent 3ec838e578
commit 5a3bdadb03
5 changed files with 33 additions and 8 deletions

View File

@@ -36,7 +36,7 @@ java_library(
'//lib/jgit:jgit', '//lib/jgit:jgit',
'//lib/jgit:jgit-servlet', '//lib/jgit:jgit-servlet',
'//lib/log:api', '//lib/log:api',
'//lib/lucene:lucene-core', '//lib/lucene:lucene-core-and-backward-codecs',
], ],
provided_deps = ['//lib:servlet-api-3_1'], provided_deps = ['//lib:servlet-api-3_1'],
visibility = ['PUBLIC'], visibility = ['PUBLIC'],

View File

@@ -11,7 +11,7 @@ java_library(
'//gerrit-server:server', '//gerrit-server:server',
'//lib:gwtorm', '//lib:gwtorm',
'//lib:guava', '//lib:guava',
'//lib/lucene:lucene-core', '//lib/lucene:lucene-core-and-backward-codecs',
], ],
visibility = ['PUBLIC'], visibility = ['PUBLIC'],
) )
@@ -34,7 +34,7 @@ java_library(
'//lib/jgit:jgit', '//lib/jgit:jgit',
'//lib/log:api', '//lib/log:api',
'//lib/lucene:lucene-analyzers-common', '//lib/lucene:lucene-analyzers-common',
'//lib/lucene:lucene-core', '//lib/lucene:lucene-core-and-backward-codecs',
'//lib/lucene:lucene-misc', '//lib/lucene:lucene-misc',
], ],
visibility = ['PUBLIC'], visibility = ['PUBLIC'],

View File

@@ -65,7 +65,7 @@ java_library(
'//lib/log:jsonevent-layout', '//lib/log:jsonevent-layout',
'//lib/log:log4j', '//lib/log:log4j',
'//lib/lucene:lucene-analyzers-common', '//lib/lucene:lucene-analyzers-common',
'//lib/lucene:lucene-core', '//lib/lucene:lucene-core-and-backward-codecs',
'//lib/lucene:lucene-queryparser', '//lib/lucene:lucene-queryparser',
'//lib/ow2:ow2-asm', '//lib/ow2:ow2-asm',
'//lib/ow2:ow2-asm-tree', '//lib/ow2:ow2-asm-tree',

View File

@@ -36,7 +36,7 @@ java_library(
'//lib:args4j', '//lib:args4j',
'//lib:guava', '//lib:guava',
'//lib/lucene:lucene-analyzers-common', '//lib/lucene:lucene-analyzers-common',
'//lib/lucene:lucene-core', '//lib/lucene:lucene-core-and-backward-codecs',
], ],
visibility = ['//tools/eclipse:classpath'], visibility = ['//tools/eclipse:classpath'],
) )

View File

@@ -2,6 +2,17 @@ include_defs('//lib/maven.defs')
VERSION = '5.4.1' VERSION = '5.4.1'
# core and backward-codecs both provide
# META-INF/services/org.apache.lucene.codecs.Codec, so they must be merged.
merge_maven_jars(
name = 'lucene-core-and-backward-codecs',
srcs = [
':backward-codecs_jar',
':lucene-core',
],
visibility = ['PUBLIC'],
)
maven_jar( maven_jar(
name = 'lucene-core', name = 'lucene-core',
id = 'org.apache.lucene:lucene-core:' + VERSION, id = 'org.apache.lucene:lucene-core:' + VERSION,
@@ -11,6 +22,7 @@ maven_jar(
'META-INF/LICENSE.txt', 'META-INF/LICENSE.txt',
'META-INF/NOTICE.txt', 'META-INF/NOTICE.txt',
], ],
visibility = [],
) )
maven_jar( maven_jar(
@@ -18,19 +30,32 @@ maven_jar(
id = 'org.apache.lucene:lucene-analyzers-common:' + VERSION, id = 'org.apache.lucene:lucene-analyzers-common:' + VERSION,
sha1 = 'c2aa2c4e00eb9cdeb5ac00dc0495e70c441f681e', sha1 = 'c2aa2c4e00eb9cdeb5ac00dc0495e70c441f681e',
license = 'Apache2.0', license = 'Apache2.0',
deps = [':lucene-core'], deps = [':lucene-core-and-backward-codecs'],
exclude = [ exclude = [
'META-INF/LICENSE.txt', 'META-INF/LICENSE.txt',
'META-INF/NOTICE.txt', 'META-INF/NOTICE.txt',
], ],
) )
maven_jar(
name = 'backward-codecs_jar',
id = 'org.apache.lucene:lucene-backward-codecs:' + VERSION,
sha1 = '5273da96380dfab302ad06c27fe58100db4c4e2f',
license = 'Apache2.0',
deps = [':core_jar'],
exclude = [
'META-INF/LICENSE.txt',
'META-INF/NOTICE.txt',
],
visibility = [],
)
maven_jar( maven_jar(
name = 'lucene-misc', name = 'lucene-misc',
id = 'org.apache.lucene:lucene-misc:' + VERSION, id = 'org.apache.lucene:lucene-misc:' + VERSION,
sha1 = '95f433b9d7dd470cc0aa5076e0f233907745674b', sha1 = '95f433b9d7dd470cc0aa5076e0f233907745674b',
license = 'Apache2.0', license = 'Apache2.0',
deps = [':lucene-core'], deps = [':lucene-core-and-backward-codecs'],
exclude = [ exclude = [
'META-INF/LICENSE.txt', 'META-INF/LICENSE.txt',
'META-INF/NOTICE.txt', 'META-INF/NOTICE.txt',
@@ -42,7 +67,7 @@ maven_jar(
id = 'org.apache.lucene:lucene-queryparser:' + VERSION, id = 'org.apache.lucene:lucene-queryparser:' + VERSION,
sha1 = 'dccd5279bfa656dec21af444a7a66820eb1cd618', sha1 = 'dccd5279bfa656dec21af444a7a66820eb1cd618',
license = 'Apache2.0', license = 'Apache2.0',
deps = [':lucene-core'], deps = [':lucene-core-and-backward-codecs'],
exclude = [ exclude = [
'META-INF/LICENSE.txt', 'META-INF/LICENSE.txt',
'META-INF/NOTICE.txt', 'META-INF/NOTICE.txt',