Elasticsearch lib: extract Jest into its own (lib)
Separate the jest libraries or jars from the elasticsearch one. Do so since Jest's Elasticsearch REST client nature totally differs from Elasticsearch's with its embedded Java API. The former is used for production, while the latter is used by the tests. Prepare the ground for potential further isolation (or decoupling) acts, to pave the way for such deps version(s) bumping -eventually soon. This shall be done while considering Lucene alongside and beyond, of course. Remove the otherwise conflicting VERSION setting in lib for Jest. Solely rely on the one Jest version already set in WORKSPACE. Bug: Issue 6094 Change-Id: I4cfe9aa8b5b8e59c3fce3ad2b4bd9a5d746fa64f
This commit is contained in:

committed by
David Pursehouse

parent
c6dbb95253
commit
84e378759f
@@ -15,10 +15,10 @@ java_library(
|
||||
"//lib/commons:codec",
|
||||
"//lib/commons:lang",
|
||||
"//lib/elasticsearch",
|
||||
"//lib/elasticsearch:jest",
|
||||
"//lib/elasticsearch:jest-common",
|
||||
"//lib/guice",
|
||||
"//lib/guice:guice-assistedinject",
|
||||
"//lib/jest",
|
||||
"//lib/jest:jest-common",
|
||||
"//lib/jgit/org.eclipse.jgit:jgit",
|
||||
"//lib/joda:joda-time",
|
||||
"//lib/log:api",
|
||||
|
@@ -26,30 +26,6 @@ java_library(
|
||||
],
|
||||
)
|
||||
|
||||
# Java REST client for Elasticsearch.
|
||||
VERSION = "0.1.7"
|
||||
|
||||
java_library(
|
||||
name = "jest-common",
|
||||
data = ["//lib:LICENSE-Apache2.0"],
|
||||
exports = ["@jest_common//jar"],
|
||||
)
|
||||
|
||||
java_library(
|
||||
name = "jest",
|
||||
data = ["//lib:LICENSE-Apache2.0"],
|
||||
exports = ["@jest//jar"],
|
||||
runtime_deps = [
|
||||
":elasticsearch",
|
||||
":jest-common",
|
||||
"//lib/commons:lang3",
|
||||
"//lib/httpcomponents:httpasyncclient",
|
||||
"//lib/httpcomponents:httpclient",
|
||||
"//lib/httpcomponents:httpcore-nio",
|
||||
"//lib/httpcomponents:httpcore-niossl",
|
||||
],
|
||||
)
|
||||
|
||||
java_library(
|
||||
name = "compress-lzf",
|
||||
data = ["//lib:LICENSE-Apache2.0"],
|
||||
|
23
lib/jest/BUILD
Normal file
23
lib/jest/BUILD
Normal file
@@ -0,0 +1,23 @@
|
||||
package(default_visibility = ["//visibility:public"])
|
||||
|
||||
java_library(
|
||||
name = "jest-common",
|
||||
data = ["//lib:LICENSE-Apache2.0"],
|
||||
visibility = ["//visibility:public"],
|
||||
exports = ["@jest_common//jar"],
|
||||
)
|
||||
|
||||
java_library(
|
||||
name = "jest",
|
||||
data = ["//lib:LICENSE-Apache2.0"],
|
||||
visibility = ["//visibility:public"],
|
||||
exports = ["@jest//jar"],
|
||||
runtime_deps = [
|
||||
":jest-common",
|
||||
"//lib/commons:lang3",
|
||||
"//lib/httpcomponents:httpasyncclient",
|
||||
"//lib/httpcomponents:httpclient",
|
||||
"//lib/httpcomponents:httpcore-nio",
|
||||
"//lib/httpcomponents:httpcore-niossl",
|
||||
],
|
||||
)
|
Reference in New Issue
Block a user