blob: aa8f923628d393fc1f9c81edfb7b80a5e22f04db [file] [log] [blame]
Serge Bazanskibfa4a652020-12-17 20:50:29 +01001load("@rules_java//java:defs.bzl", "java_library")
Sergiusz Bazanski57efce62019-07-21 16:39:54 +02002load("//devtools/gerrit/gerrit-oauth-provider/tools/bzl:junit.bzl", "junit_tests")
Sergiusz Bazanski573da782019-06-21 19:59:52 +02003load(
Sergiusz Bazanski57efce62019-07-21 16:39:54 +02004 "//devtools/gerrit/gerrit-oauth-provider/tools/bzl:plugin.bzl",
Sergiusz Bazanski573da782019-06-21 19:59:52 +02005 "PLUGIN_DEPS",
6 "PLUGIN_TEST_DEPS",
7 "gerrit_plugin",
8)
9
10gerrit_plugin(
11 name = "gerrit-oauth-provider",
12 srcs = glob(["src/main/java/**/*.java"]),
13 manifest_entries = [
14 "Gerrit-PluginName: gerrit-oauth-provider",
15 "Gerrit-HttpModule: com.googlesource.gerrit.plugins.oauth.HttpModule",
16 "Gerrit-InitStep: com.googlesource.gerrit.plugins.oauth.InitOAuth",
17 "Implementation-Title: Gerrit OAuth authentication provider",
18 "Implementation-URL: https://github.com/davido/gerrit-oauth-provider",
19 ],
20 resources = glob(["src/main/resources/**/*"]),
21 deps = [
22 "@commons-codec//jar:neverlink",
Serge Bazanski2ceb69f2023-10-08 12:27:44 +000023 "@jackson-core//jar",
Serge Bazanskibfa4a652020-12-17 20:50:29 +010024 "@jackson-databind//jar",
Serge Bazanski2ceb69f2023-10-08 12:27:44 +000025 "@jackson-annotations//jar",
Serge Bazanskibfa4a652020-12-17 20:50:29 +010026 "@scribejava-core//jar",
Sergiusz Bazanski573da782019-06-21 19:59:52 +020027 ],
28)
29
Serge Bazanski97b5cd72023-07-28 17:14:50 +000030#junit_tests(
31# name = "gerrit-oauth-provider_tests",
32# srcs = glob(["src/test/java/**/*.java"]),
33# tags = ["oauth"],
34# deps = [
35# ":gerrit-oauth-provider__plugin_test_deps",
36# "@scribejava-core//jar",
37# ],
38#)
Sergiusz Bazanski573da782019-06-21 19:59:52 +020039
40java_library(
41 name = "gerrit-oauth-provider__plugin_test_deps",
42 testonly = 1,
43 visibility = ["//visibility:public"],
44 exports = PLUGIN_DEPS + PLUGIN_TEST_DEPS + [
45 ":gerrit-oauth-provider__plugin",
Sergiusz Bazanski573da782019-06-21 19:59:52 +020046 ],
47)