-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathBUILD
More file actions
39 lines (35 loc) · 1.19 KB
/
BUILD
File metadata and controls
39 lines (35 loc) · 1.19 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
load(
"@com_googlesource_gerrit_bazlets//:gerrit_plugin.bzl",
"gerrit_plugin",
"gerrit_plugin_tests",
)
EXT_DEPS = [
"com.github.scribejava:scribejava-apis",
"com.github.scribejava:scribejava-core",
"com.sap.cloud.security.java:api",
"com.sap.cloud.security.java:security",
]
PLUGIN = "oauth"
gerrit_plugin(
srcs = glob(["src/main/java/**/*.java"]),
ext_deps = [
"com.fasterxml.jackson.core:jackson-databind",
"com.sap.cloud.security:env",
"com.sap.cloud.security.xsuaa:token-client",
] + EXT_DEPS,
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",
],
plugin = PLUGIN,
resources = glob(["src/main/resources/**/*"]),
)
gerrit_plugin_tests(
srcs = glob(["src/test/java/**/*.java"]),
ext_deps = EXT_DEPS,
plugin = PLUGIN,
)