-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathBUILD
More file actions
44 lines (41 loc) · 1.7 KB
/
BUILD
File metadata and controls
44 lines (41 loc) · 1.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
load(
"@com_googlesource_gerrit_bazlets//:gerrit_plugin.bzl",
"gerrit_plugin",
"gerrit_plugin_dependency_tests",
"gerrit_plugin_tests",
)
gerrit_plugin(
name = "oauth",
srcs = glob(["src/main/java/**/*.java"]),
manifest_entries = [
"Gerrit-PluginName: gerrit-oauth-provider",
"Gerrit-Module: com.googlesource.gerrit.plugins.oauth.Module",
"Gerrit-HttpModule: com.googlesource.gerrit.plugins.oauth.HttpModule",
"Gerrit-InitStep: com.googlesource.gerrit.plugins.oauth.InitOAuth",
"Implementation-Title: Gerrit OAuth authentication provider",
"Implementation-URL: https://github.com/davido/gerrit-oauth-provider",
],
resources = glob(["src/main/resources/**/*"]),
deps = [
"@oauth_plugin_deps//:com_fasterxml_jackson_core_jackson_databind",
"@oauth_plugin_deps//:com_github_scribejava_scribejava_apis",
"@oauth_plugin_deps//:com_github_scribejava_scribejava_core",
"@oauth_plugin_deps//:com_sap_cloud_security_env",
"@oauth_plugin_deps//:com_sap_cloud_security_java_api",
"@oauth_plugin_deps//:com_sap_cloud_security_java_security",
"@oauth_plugin_deps//:com_sap_cloud_security_xsuaa_token_client",
],
)
gerrit_plugin_tests(
name = "oauth_tests",
srcs = glob(["src/test/java/**/*.java"]),
tags = ["oauth"],
deps = [
":oauth__plugin",
"@oauth_plugin_deps//:com_github_scribejava_scribejava_apis",
"@oauth_plugin_deps//:com_github_scribejava_scribejava_core",
"@oauth_plugin_deps//:com_sap_cloud_security_java_api",
"@oauth_plugin_deps//:com_sap_cloud_security_java_security",
],
)
gerrit_plugin_dependency_tests(plugin = "oauth")