Merge changes from topics "webhooks-core", "delete-project-core"
* changes: Add webhooks as a core plugin Add delete-project as a core plugin
This commit is contained in:
10
.gitmodules
vendored
10
.gitmodules
vendored
@@ -8,6 +8,11 @@
|
|||||||
url = ../plugins/commit-message-length-validator
|
url = ../plugins/commit-message-length-validator
|
||||||
branch = .
|
branch = .
|
||||||
|
|
||||||
|
[submodule "plugins/delete-project"]
|
||||||
|
path = plugins/delete-project
|
||||||
|
url = ../plugins/delete-project
|
||||||
|
branch = .
|
||||||
|
|
||||||
[submodule "plugins/download-commands"]
|
[submodule "plugins/download-commands"]
|
||||||
path = plugins/download-commands
|
path = plugins/download-commands
|
||||||
url = ../plugins/download-commands
|
url = ../plugins/download-commands
|
||||||
@@ -32,3 +37,8 @@
|
|||||||
path = plugins/singleusergroup
|
path = plugins/singleusergroup
|
||||||
url = ../plugins/singleusergroup
|
url = ../plugins/singleusergroup
|
||||||
branch = .
|
branch = .
|
||||||
|
|
||||||
|
[submodule "plugins/webhooks"]
|
||||||
|
path = plugins/webhooks
|
||||||
|
url = ../plugins/webhooks
|
||||||
|
branch = .
|
||||||
|
|||||||
@@ -61,6 +61,18 @@ Documentation] |
|
|||||||
link:https://gerrit.googlesource.com/plugins/commit-message-length-validator/+doc/master/src/main/resources/Documentation/config.md[
|
link:https://gerrit.googlesource.com/plugins/commit-message-length-validator/+doc/master/src/main/resources/Documentation/config.md[
|
||||||
Configuration]
|
Configuration]
|
||||||
|
|
||||||
|
[[delete-project]]
|
||||||
|
=== delete-project
|
||||||
|
|
||||||
|
Provides the ability to delete a project.
|
||||||
|
|
||||||
|
link:https://gerrit-review.googlesource.com/admin/repos/plugins/delete-project[
|
||||||
|
Project] |
|
||||||
|
link:https://gerrit.googlesource.com/plugins/delete-project/+doc/master/src/main/resources/Documentation/about.md[
|
||||||
|
Documentation] |
|
||||||
|
link:https://gerrit.googlesource.com/plugins/delete-project/+doc/master/src/main/resources/Documentation/config.md[
|
||||||
|
Configuration]
|
||||||
|
|
||||||
[[download-commands]]
|
[[download-commands]]
|
||||||
=== download-commands
|
=== download-commands
|
||||||
|
|
||||||
@@ -220,16 +232,6 @@ Plugin Documentation] |
|
|||||||
link:https://gerrit.googlesource.com/plugins/changemessage/+doc/master/src/main/resources/Documentation/config.md[
|
link:https://gerrit.googlesource.com/plugins/changemessage/+doc/master/src/main/resources/Documentation/config.md[
|
||||||
Configuration]
|
Configuration]
|
||||||
|
|
||||||
[[delete-project]]
|
|
||||||
=== delete-project
|
|
||||||
|
|
||||||
Provides the ability to delete a project.
|
|
||||||
|
|
||||||
link:https://gerrit-review.googlesource.com/admin/repos/plugins/delete-project[
|
|
||||||
Project] |
|
|
||||||
link:https://gerrit.googlesource.com/plugins/delete-project/+doc/master/src/main/resources/Documentation/about.md[
|
|
||||||
Documentation]
|
|
||||||
|
|
||||||
[[egit]]
|
[[egit]]
|
||||||
=== egit
|
=== egit
|
||||||
|
|
||||||
|
|||||||
26
WORKSPACE
26
WORKSPACE
@@ -1072,6 +1072,32 @@ maven_jar(
|
|||||||
sha1 = "485de3a253e23f645037828c07f1d7f1af40763a",
|
sha1 = "485de3a253e23f645037828c07f1d7f1af40763a",
|
||||||
)
|
)
|
||||||
|
|
||||||
|
maven_jar(
|
||||||
|
name = "mockito",
|
||||||
|
artifact = "org.mockito:mockito-core:2.23.4",
|
||||||
|
sha1 = "a35b6f8ffcfa786771eac7d7d903429e790fdf3f",
|
||||||
|
)
|
||||||
|
|
||||||
|
BYTE_BUDDY_VERSION = "1.9.3"
|
||||||
|
|
||||||
|
maven_jar(
|
||||||
|
name = "byte-buddy",
|
||||||
|
artifact = "net.bytebuddy:byte-buddy:" + BYTE_BUDDY_VERSION,
|
||||||
|
sha1 = "f32e510b239620852fc9a2387fac41fd053d6a4d",
|
||||||
|
)
|
||||||
|
|
||||||
|
maven_jar(
|
||||||
|
name = "byte-buddy-agent",
|
||||||
|
artifact = "net.bytebuddy:byte-buddy-agent:" + BYTE_BUDDY_VERSION,
|
||||||
|
sha1 = "f5b78c16cf4060664d80b6ca32d80dca4bd3d264",
|
||||||
|
)
|
||||||
|
|
||||||
|
maven_jar(
|
||||||
|
name = "objenesis",
|
||||||
|
artifact = "org.objenesis:objenesis:2.6",
|
||||||
|
sha1 = "639033469776fd37c08358c6b92a4761feb2af4b",
|
||||||
|
)
|
||||||
|
|
||||||
load("//tools/bzl:js.bzl", "bower_archive", "npm_binary")
|
load("//tools/bzl:js.bzl", "bower_archive", "npm_binary")
|
||||||
|
|
||||||
# NPM binaries bundled along with their dependencies.
|
# NPM binaries bundled along with their dependencies.
|
||||||
|
|||||||
@@ -50,6 +50,7 @@ java_library(
|
|||||||
"//lib/guice:guice-servlet",
|
"//lib/guice:guice-servlet",
|
||||||
"//lib/jgit/org.eclipse.jgit:jgit",
|
"//lib/jgit/org.eclipse.jgit:jgit",
|
||||||
"//lib/mina:sshd",
|
"//lib/mina:sshd",
|
||||||
|
"//lib/mockito",
|
||||||
"//prolog:gerrit-prolog-common",
|
"//prolog:gerrit-prolog-common",
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
|
|||||||
35
lib/mockito/BUILD
Normal file
35
lib/mockito/BUILD
Normal 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"],
|
||||||
|
)
|
||||||
1
plugins/delete-project
Submodule
1
plugins/delete-project
Submodule
Submodule plugins/delete-project added at 6d5deba11e
1
plugins/webhooks
Submodule
1
plugins/webhooks
Submodule
Submodule plugins/webhooks added at 37b062e08c
@@ -1,11 +1,13 @@
|
|||||||
CORE_PLUGINS = [
|
CORE_PLUGINS = [
|
||||||
"codemirror-editor",
|
"codemirror-editor",
|
||||||
"commit-message-length-validator",
|
"commit-message-length-validator",
|
||||||
|
"delete-project",
|
||||||
"download-commands",
|
"download-commands",
|
||||||
"hooks",
|
"hooks",
|
||||||
"replication",
|
"replication",
|
||||||
"reviewnotes",
|
"reviewnotes",
|
||||||
"singleusergroup",
|
"singleusergroup",
|
||||||
|
"webhooks",
|
||||||
]
|
]
|
||||||
|
|
||||||
CUSTOM_PLUGINS = [
|
CUSTOM_PLUGINS = [
|
||||||
|
|||||||
Reference in New Issue
Block a user