| 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") |