![David Ostrovsky](/assets/img/avatar_default.png)
Reformat the Bazel build files with the buildifier tool [1]. The style is different for Bazel files. Most notably, indentation level is 4 spaces instead of 2, and " is used instead of '. [1] https://github.com/bazelbuild/buildifier Change-Id: I95c0c6f11b6d76572797853b4ebb5cee5ebd3c98
69 lines
1.8 KiB
Python
69 lines
1.8 KiB
Python
java_library(
|
|
name = "elasticsearch",
|
|
srcs = glob(["src/main/java/**/*.java"]),
|
|
visibility = ["//visibility:public"],
|
|
deps = [
|
|
"//gerrit-antlr:query_exception",
|
|
"//gerrit-extension-api:api",
|
|
"//gerrit-reviewdb:client",
|
|
"//gerrit-reviewdb:server",
|
|
"//gerrit-server:server",
|
|
"//lib:gson",
|
|
"//lib:guava",
|
|
"//lib:gwtorm",
|
|
"//lib:protobuf",
|
|
"//lib/commons:codec",
|
|
"//lib/commons:lang",
|
|
"//lib/elasticsearch",
|
|
"//lib/elasticsearch:jest",
|
|
"//lib/elasticsearch:jest-common",
|
|
"//lib/guice",
|
|
"//lib/guice:guice-assistedinject",
|
|
"//lib/jgit/org.eclipse.jgit:jgit",
|
|
"//lib/joda:joda-time",
|
|
"//lib/log:api",
|
|
"//lib/lucene:lucene-analyzers-common",
|
|
"//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 = [
|
|
"//gerrit-extension-api:api",
|
|
"//gerrit-server:server",
|
|
"//lib:gson",
|
|
"//lib:guava",
|
|
"//lib:junit",
|
|
"//lib:truth",
|
|
"//lib/elasticsearch",
|
|
"//lib/jgit/org.eclipse.jgit:jgit",
|
|
"//lib/jgit/org.eclipse.jgit.junit:junit",
|
|
],
|
|
)
|
|
|
|
junit_tests(
|
|
name = "elasticsearch_tests",
|
|
size = "large",
|
|
srcs = glob(["src/test/java/**/*Test.java"]),
|
|
flaky = 1,
|
|
tags = [
|
|
"elastic",
|
|
"flaky",
|
|
],
|
|
deps = [
|
|
":elasticsearch",
|
|
":elasticsearch_test_utils",
|
|
"//gerrit-server:query_tests_code",
|
|
"//gerrit-server:server",
|
|
"//gerrit-server:testutil",
|
|
"//lib/guice",
|
|
"//lib/jgit/org.eclipse.jgit:jgit",
|
|
"//lib/jgit/org.eclipse.jgit.junit:junit",
|
|
],
|
|
)
|