Serge Bazanski | bfa4a65 | 2020-12-17 20:50:29 +0100 | [diff] [blame] | 1 | load("@rules_java//java:defs.bzl", "java_library") |
Sergiusz Bazanski | 57efce6 | 2019-07-21 16:39:54 +0200 | [diff] [blame] | 2 | load("//devtools/gerrit/gerrit-oauth-provider/tools/bzl:junit.bzl", "junit_tests") |
Sergiusz Bazanski | 573da78 | 2019-06-21 19:59:52 +0200 | [diff] [blame] | 3 | load( |
Sergiusz Bazanski | 57efce6 | 2019-07-21 16:39:54 +0200 | [diff] [blame] | 4 | "//devtools/gerrit/gerrit-oauth-provider/tools/bzl:plugin.bzl", |
Sergiusz Bazanski | 573da78 | 2019-06-21 19:59:52 +0200 | [diff] [blame] | 5 | "PLUGIN_DEPS", |
| 6 | "PLUGIN_TEST_DEPS", |
| 7 | "gerrit_plugin", |
| 8 | ) |
| 9 | |
| 10 | gerrit_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 Bazanski | 2ceb69f | 2023-10-08 12:27:44 +0000 | [diff] [blame] | 23 | "@jackson-core//jar", |
Serge Bazanski | bfa4a65 | 2020-12-17 20:50:29 +0100 | [diff] [blame] | 24 | "@jackson-databind//jar", |
Serge Bazanski | 2ceb69f | 2023-10-08 12:27:44 +0000 | [diff] [blame] | 25 | "@jackson-annotations//jar", |
Serge Bazanski | bfa4a65 | 2020-12-17 20:50:29 +0100 | [diff] [blame] | 26 | "@scribejava-core//jar", |
Sergiusz Bazanski | 573da78 | 2019-06-21 19:59:52 +0200 | [diff] [blame] | 27 | ], |
| 28 | ) |
| 29 | |
Serge Bazanski | 97b5cd7 | 2023-07-28 17:14:50 +0000 | [diff] [blame] | 30 | #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 Bazanski | 573da78 | 2019-06-21 19:59:52 +0200 | [diff] [blame] | 39 | |
| 40 | java_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 Bazanski | 573da78 | 2019-06-21 19:59:52 +0200 | [diff] [blame] | 46 | ], |
| 47 | ) |