gerrit/gerrit-util-http/BUILD
David Ostrovsky fa18907d7f Bazel: Reformat build files
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
2016-12-07 11:33:07 +00:00

41 lines
908 B
Python

load("//tools/bzl:junit.bzl", "junit_tests")
java_library(
name = "http",
srcs = glob(["src/main/java/**/*.java"]),
visibility = ["//visibility:public"],
deps = ["//lib:servlet-api-3_1"],
)
TESTUTIL_SRCS = glob(["src/test/**/testutil/**/*.java"])
java_library(
name = "testutil",
testonly = 1,
srcs = TESTUTIL_SRCS,
visibility = ["//visibility:public"],
deps = [
"//gerrit-extension-api:api",
"//lib:guava",
"//lib:servlet-api-3_1",
"//lib/httpcomponents:httpclient",
"//lib/jgit/org.eclipse.jgit:jgit",
],
)
junit_tests(
name = "http_tests",
srcs = glob(
["src/test/java/**/*.java"],
exclude = TESTUTIL_SRCS,
),
deps = [
":http",
":testutil",
"//lib:junit",
"//lib:servlet-api-3_1-without-neverlink",
"//lib:truth",
"//lib/easymock",
],
)