gerrit/tools/bzl
David Ostrovsky f2f4ee165c Consider plugin's test deps in eclipse classpath generation
Introduce the CUSTOM_PLUGINS_TEST_DEPS in tools/bzl/plugins.bzl
that allow plugin with external test dependencies to be listed.
That way Eclipse classpath generation process can consider these
dependencies.

Because the plugin's own test rule need these dependencies, it
should expose java_library rule called: <plugin>__plugin_test_deps:

  java_library(
      name = "high-availability__plugin_test_deps",
      visibility = ["//visibility:public"],
      exports = [
          "@byte-buddy//jar",
          "@mockito//jar",
          "@objenesis//jar",
          "@wiremock//jar",
      ],
  )

and re-use this rule in junit_tests rule, e.g.:

  junit_tests(
      name = "high_availability_tests",
      [...]
      deps = [
          [...]
          ":high-availability__plugin_test_deps",
      ]
  )

Bug: Issue 6351
Change-Id: I55b402fa6edb9f2506a91451d70e68d44d1a7762
2017-05-31 06:42:48 +00:00
..
BUILD Bazel: Reformat build files 2016-12-07 11:33:07 +00:00
asciidoc.bzl Format .bzl files with Bazel Buildifier 2016-12-11 19:00:21 +09:00
classpath.bzl Format .bzl files with Bazel Buildifier 2016-12-11 19:00:21 +09:00
genrule2.bzl bazel: remove 'out' attribute from genrule2, and use throughout. 2016-11-02 13:54:10 +01:00
gwt.bzl Bazel: Allow to consume jgit from development tree 2017-03-22 22:27:12 +01:00
java.bzl Implement Bazel build 2016-06-14 21:12:02 +02:00
javadoc.bzl Format .bzl files with Bazel Buildifier 2016-12-11 19:00:21 +09:00
js.bzl Don't hardcode /bin/bash 2017-03-03 08:12:45 -06:00
junit.bzl Implement Bazel build 2016-06-14 21:12:02 +02:00
license-map.py Make built-in bouncycastle actually work 2017-02-20 15:02:06 +01:00
license.bzl Format .bzl files with Bazel Buildifier 2016-12-11 19:00:21 +09:00
maven.bzl bazel: add license to appropriate lib/ targets 2016-09-26 16:42:38 +08:00
maven_jar.bzl maven_jar compatibility to rules_closure#java_import_external 2017-05-15 16:59:49 +09:00
pkg_war.bzl Don't ship bouncycastle libraries in plugin API 2017-04-07 07:38:04 +02:00
plugin.bzl Don't ship bouncycastle libraries in plugin API 2017-04-07 07:38:04 +02:00
plugins.bzl Consider plugin's test deps in eclipse classpath generation 2017-05-31 06:42:48 +00:00
test_empty.sh bazel: add test that forbids DO_NOT_DISTRIBUTE in //gerrit-pgm:pgm. 2016-09-21 19:52:53 +00:00
test_license.sh Make built-in bouncycastle actually work 2017-02-20 15:02:06 +01:00