aboutsummaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit.gpg.bc.test/BUILD
diff options
context:
space:
mode:
authorDavid Ostrovsky <david@ostrovsky.org>2021-03-27 15:27:01 +0100
committerDavid Ostrovsky <david@ostrovsky.org>2021-03-27 15:27:25 +0100
commitc82818e0e02a9d1bd979d27bd342bb05661150d4 (patch)
treebfc366f6ab91b039b8c2498f88cff14f2de01066 /org.eclipse.jgit.gpg.bc.test/BUILD
parentf8eefdb0034b7130ac6ea2b7710439b159225c87 (diff)
downloadjgit-c82818e0e02a9d1bd979d27bd342bb05661150d4.tar.gz
jgit-c82818e0e02a9d1bd979d27bd342bb05661150d4.zip
Bazel: Remove unused dependencies flagged by unused_deps
Change-Id: I7fcb494fdce4bb3de203236fa51b188b099d842f Signed-off-by: David Ostrovsky <david@ostrovsky.org>
Diffstat (limited to 'org.eclipse.jgit.gpg.bc.test/BUILD')
-rw-r--r--org.eclipse.jgit.gpg.bc.test/BUILD12
1 files changed, 3 insertions, 9 deletions
diff --git a/org.eclipse.jgit.gpg.bc.test/BUILD b/org.eclipse.jgit.gpg.bc.test/BUILD
index 99f1f0b1bf..4c86effab3 100644
--- a/org.eclipse.jgit.gpg.bc.test/BUILD
+++ b/org.eclipse.jgit.gpg.bc.test/BUILD
@@ -2,7 +2,6 @@ load(
"@com_googlesource_gerrit_bazlets//tools:genrule2.bzl",
"genrule2",
)
-load("@rules_java//java:defs.bzl", "java_import")
load(
"@com_googlesource_gerrit_bazlets//tools:junit.bzl",
"junit_tests",
@@ -11,25 +10,20 @@ load(
junit_tests(
name = "bc",
srcs = glob(["tst/**/*.java"]),
+ resource_jars = [":tst_rsrc"],
tags = ["bc"],
deps = [
"//lib:bcpg",
"//lib:bcprov",
"//lib:junit",
"//org.eclipse.jgit.gpg.bc:gpg-bc",
- "//org.eclipse.jgit.gpg.bc.test:tst_rsrc",
"//org.eclipse.jgit:jgit",
],
)
-java_import(
- name = "tst_rsrc",
- jars = [":tst_rsrc_jar"],
-)
-
genrule2(
- name = "tst_rsrc_jar",
+ name = "tst_rsrc",
srcs = glob(["tst-rsrc/**"]),
outs = ["tst_rsrc.jar"],
- cmd = "o=$$PWD/$@ && tar cf - $(SRCS) | tar -C $$TMP --strip-components=2 -xf - && cd $$TMP && zip -qr $$o .",
+ cmd = "tar cf - $(SRCS) | tar -C $$TMP --strip-components=2 -xf - && cd $$TMP && zip -qr $$ROOT/$@ .",
)