b7e4235375
* stable-2.14: lib/elasticsearch: remove unnecessary dependencies lib/jest for Elasticsearch: refactor dependencies Elasticsearch BUILD: remove unneeded dependencies Change-Id: Id9f5eba410579f220c836e2b998ed8aac0111cd4
61 lines
1.5 KiB
Python
61 lines
1.5 KiB
Python
java_library(
|
|
name = "elasticsearch",
|
|
srcs = glob(["src/main/java/**/*.java"]),
|
|
visibility = ["//visibility:public"],
|
|
deps = [
|
|
"//gerrit-extension-api:api",
|
|
"//gerrit-index:index",
|
|
"//gerrit-index:query_exception",
|
|
"//gerrit-reviewdb:server",
|
|
"//gerrit-server:server",
|
|
"//lib:gson",
|
|
"//lib:guava",
|
|
"//lib:gwtorm",
|
|
"//lib/commons:codec",
|
|
"//lib/elasticsearch",
|
|
"//lib/guice",
|
|
"//lib/guice:guice-assistedinject",
|
|
"//lib/jest",
|
|
"//lib/jest:jest-common",
|
|
"//lib/jgit/org.eclipse.jgit:jgit",
|
|
"//lib/log:api",
|
|
"//lib/lucene:lucene-core",
|
|
],
|
|
)
|
|
|
|
load("//tools/bzl:junit.bzl", "junit_tests")
|
|
|
|
java_library(
|
|
name = "elasticsearch_test_utils",
|
|
testonly = 1,
|
|
srcs = glob(["src/test/java/**/ElasticTestUtils.java"]),
|
|
deps = [
|
|
":elasticsearch",
|
|
"//gerrit-index:index",
|
|
"//gerrit-reviewdb:server",
|
|
"//gerrit-server:server",
|
|
"//lib:gson",
|
|
"//lib:truth",
|
|
"//lib/elasticsearch",
|
|
"//lib/jgit/org.eclipse.jgit:jgit",
|
|
],
|
|
)
|
|
|
|
junit_tests(
|
|
name = "elasticsearch_tests",
|
|
size = "large",
|
|
srcs = glob(["src/test/java/**/*Test.java"]),
|
|
tags = [
|
|
"elastic",
|
|
],
|
|
deps = [
|
|
":elasticsearch",
|
|
":elasticsearch_test_utils",
|
|
"//gerrit-server:query_tests_code",
|
|
"//gerrit-server:testutil",
|
|
"//lib/guice",
|
|
"//lib/jgit/org.eclipse.jgit:jgit",
|
|
"//lib/jgit/org.eclipse.jgit.junit:junit",
|
|
],
|
|
)
|