Bazel: Remove unused dependencies flagged by unused_deps
Change-Id: I7fcb494fdce4bb3de203236fa51b188b099d842f Signed-off-by: David Ostrovsky <david@ostrovsky.org>
This commit is contained in:
parent
f8eefdb003
commit
c82818e0e0
|
@ -2,7 +2,6 @@ load(
|
||||||
"@com_googlesource_gerrit_bazlets//tools:genrule2.bzl",
|
"@com_googlesource_gerrit_bazlets//tools:genrule2.bzl",
|
||||||
"genrule2",
|
"genrule2",
|
||||||
)
|
)
|
||||||
load("@rules_java//java:defs.bzl", "java_import")
|
|
||||||
load(
|
load(
|
||||||
"@com_googlesource_gerrit_bazlets//tools:junit.bzl",
|
"@com_googlesource_gerrit_bazlets//tools:junit.bzl",
|
||||||
"junit_tests",
|
"junit_tests",
|
||||||
|
@ -11,25 +10,20 @@ load(
|
||||||
junit_tests(
|
junit_tests(
|
||||||
name = "bc",
|
name = "bc",
|
||||||
srcs = glob(["tst/**/*.java"]),
|
srcs = glob(["tst/**/*.java"]),
|
||||||
|
resource_jars = [":tst_rsrc"],
|
||||||
tags = ["bc"],
|
tags = ["bc"],
|
||||||
deps = [
|
deps = [
|
||||||
"//lib:bcpg",
|
"//lib:bcpg",
|
||||||
"//lib:bcprov",
|
"//lib:bcprov",
|
||||||
"//lib:junit",
|
"//lib:junit",
|
||||||
"//org.eclipse.jgit.gpg.bc:gpg-bc",
|
"//org.eclipse.jgit.gpg.bc:gpg-bc",
|
||||||
"//org.eclipse.jgit.gpg.bc.test:tst_rsrc",
|
|
||||||
"//org.eclipse.jgit:jgit",
|
"//org.eclipse.jgit:jgit",
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
|
|
||||||
java_import(
|
|
||||||
name = "tst_rsrc",
|
|
||||||
jars = [":tst_rsrc_jar"],
|
|
||||||
)
|
|
||||||
|
|
||||||
genrule2(
|
genrule2(
|
||||||
name = "tst_rsrc_jar",
|
name = "tst_rsrc",
|
||||||
srcs = glob(["tst-rsrc/**"]),
|
srcs = glob(["tst-rsrc/**"]),
|
||||||
outs = ["tst_rsrc.jar"],
|
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/$@ .",
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue