gerrit/gerrit-gpg/BUILD
Han-Wen Nienhuys 6471e8a94a Ship BouncyCastle in the .war files.
Per
https://www.bis.doc.gov/index.php/forms-documents/encryption/328-flowchart-2/file
open source crypto software can be self-classified as 5D002, and
requires only notification of the U.S. Bureau of Industry and
Security.

This registration has been performed by Google, as of Feb 15, 2017.

This gets rid of the special casing for BouncyCastle, simplifying our
build and deployment process.

Change-Id: I680b0a001e5e2e497ed6e62c90c8b8be30efff48
2017-02-15 13:48:57 +01:00

60 lines
1.4 KiB
Python

load("//tools/bzl:junit.bzl", "junit_tests")
DEPS = [
"//gerrit-common:server",
"//gerrit-extension-api:api",
"//gerrit-reviewdb:server",
"//gerrit-server:server",
"//lib:guava",
"//lib:gwtorm",
"//lib/guice:guice",
"//lib/guice:guice-assistedinject",
"//lib/guice:guice-servlet",
"//lib/jgit/org.eclipse.jgit:jgit",
"//lib/log:api",
]
java_library(
name = "gpg",
srcs = glob(["src/main/java/**/*.java"]),
visibility = ["//visibility:public"],
deps = DEPS + [
"//lib/bouncycastle:bcpg",
"//lib/bouncycastle:bcprov",
],
)
TESTUTIL_SRCS = glob(["src/test/**/testutil/**/*.java"])
java_library(
name = "testutil",
testonly = 1,
srcs = TESTUTIL_SRCS,
visibility = ["//visibility:public"],
deps = DEPS + [
":gpg",
"//lib/bouncycastle:bcpg",
"//lib/bouncycastle:bcprov",
],
)
junit_tests(
name = "gpg_tests",
srcs = glob(
["src/test/java/**/*.java"],
exclude = TESTUTIL_SRCS,
),
visibility = ["//visibility:public"],
deps = DEPS + [
":gpg",
":testutil",
"//gerrit-cache-h2:cache-h2",
"//gerrit-lucene:lucene",
"//gerrit-server:testutil",
"//lib:truth",
"//lib/jgit/org.eclipse.jgit.junit:junit",
"//lib/bouncycastle:bcpg",
"//lib/bouncycastle:bcprov",
],
)