e1359a35e1
Recent Bazel versions support dash character in external repository names. Consistently use them with one exception: javax_inject. This is needed to match the name in the rules_closure. Change-Id: I1e75690fe1ee2ab32fffe07c0c30dbed84753960
47 lines
1.3 KiB
Python
47 lines
1.3 KiB
Python
package(default_visibility = ["//visibility:public"])
|
|
|
|
load("//tools/bzl:maven.bzl", "merge_maven_jars")
|
|
|
|
# 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//jar",
|
|
],
|
|
data = ["//lib:LICENSE-Apache2.0"],
|
|
visibility = ["//visibility:public"],
|
|
)
|
|
|
|
java_library(
|
|
name = "lucene-analyzers-common",
|
|
data = ["//lib:LICENSE-Apache2.0"],
|
|
visibility = ["//visibility:public"],
|
|
exports = ["@lucene-analyzers-common//jar"],
|
|
runtime_deps = [":lucene-core-and-backward-codecs"],
|
|
)
|
|
|
|
java_library(
|
|
name = "lucene-core",
|
|
data = ["//lib:LICENSE-Apache2.0"],
|
|
visibility = ["//visibility:public"],
|
|
exports = ["@lucene-core//jar"],
|
|
)
|
|
|
|
java_library(
|
|
name = "lucene-misc",
|
|
data = ["//lib:LICENSE-Apache2.0"],
|
|
visibility = ["//visibility:public"],
|
|
exports = ["@lucene-misc//jar"],
|
|
runtime_deps = [":lucene-core-and-backward-codecs"],
|
|
)
|
|
|
|
java_library(
|
|
name = "lucene-queryparser",
|
|
data = ["//lib:LICENSE-Apache2.0"],
|
|
visibility = ["//visibility:public"],
|
|
exports = ["@lucene-queryparser//jar"],
|
|
runtime_deps = [":lucene-core-and-backward-codecs"],
|
|
)
|