8 Commits

Author SHA1 Message Date
David Ostrovsky
55ff68f8d5 Add gitiles as core plugin
Feature: Issue 10334
Change-Id: I5ebca8a20d0933fb920cee17f46ceefad6309656
2019-01-23 11:21:14 +00:00
David Pursehouse
faf6c41050 Add webhooks as a core plugin
Change-Id: Ib450f5815e9698aba2b6ffdbd85c69daea72ac24
2018-12-07 14:07:23 +09:00
David Pursehouse
1e150738d8 Add delete-project as a core plugin
Also add dependency on Mockito, which is now exported in the
acceptance framework. There are several other plugins using
this dependency, so exporting it in the acceptance framework
will have the nice side effect that we no longer need to keep
updating them individually.

Also note that one of the other plugins that uses Mockito is
the webhooks plugin, which is also planned to be added as a
core plugin.

Feature: Issue 8863
Change-Id: I72c0694ec6fcbabc2ef030014268738aa69cb707
2018-12-07 13:28:08 +09:00
Kasper Nilsson
75147c0af3 Modify plugins:core to build codemirror-editor
Bug: Issue 4437
Change-Id: I6ca6049f5371515e0891e7e334dc66bd9c12167e
2017-12-09 00:59:31 +01:00
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
Paladox none
021d7df24c Do not include cookbook plugin in release.war
1164e53283187b8a2a79052f5ea85471f6f0b6d4 (Allow to add custom core
plugins in release build, 2015-12-11) added an item CUSTOM to the buck
plugin rules to make it easier for people to add additional 'core'
plugins in a release build of a forked copy of Gerrit.

When that was ported to bazel, it included cookbook-plugin by mistake.
As a result, when someone runs

  bazel build release

they get a copy of gerrit with the cookbook plugin included and
enabled, which is almost never what they wanted.

Fix it by making the default list of custom plugins an empty list again.

Change-Id: I9b1653046bd368b8ec5c1978a15bd675c5dd31e7
2017-03-01 00:06:11 +00:00
David Pursehouse
2d08500516 Format .bzl files with Bazel Buildifier
Change-Id: I3ab30565e5ac110a18cbe3d34f76307801c30373
2016-12-11 19:00:21 +09:00
David Ostrovsky
64e1aff339 Bazel: Generate source dir for plugins in eclipse classpath
Change-Id: I9f71808b2ce6b29523143bcc98de4a5f50a5dc94
2016-11-25 09:58:39 +00:00