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
This commit is contained in:
David Pursehouse
2018-11-10 07:57:16 +09:00
parent e1257b07df
commit 1e150738d8
7 changed files with 81 additions and 10 deletions

35
lib/mockito/BUILD Normal file
View File

@@ -0,0 +1,35 @@
package(
default_testonly = 1,
default_visibility = ["//visibility:private"],
)
java_library(
name = "mockito",
data = ["//lib:LICENSE-Apache2.0"],
# Only exposed for plugin tests; core tests should use Easymock
visibility = ["//java/com/google/gerrit/acceptance:__pkg__"],
exports = ["@mockito//jar"],
runtime_deps = [
":byte-buddy",
":byte-buddy-agent",
":objenesis",
],
)
java_library(
name = "byte-buddy",
data = ["//lib:LICENSE-Apache2.0"],
exports = ["@byte-buddy//jar"],
)
java_library(
name = "byte-buddy-agent",
data = ["//lib:LICENSE-Apache2.0"],
exports = ["@byte-buddy-agent//jar"],
)
java_library(
name = "objenesis",
data = ["//lib:LICENSE-Apache2.0"],
exports = ["@objenesis//jar"],
)