| load("//tools/bzl:junit.bzl", "junit_tests") |
| load("//tools/bzl:plugin.bzl", "gerrit_plugin", "PLUGIN_DEPS", "PLUGIN_TEST_DEPS") |
| load("//lib/prolog:prolog.bzl", "prolog_cafe_library") |
| load("//plugins/owners-common:common.bzl", "EXTERNAL_DEPS") |
| |
| COMPILE_STUB = ["src/main/java/com/vmware/gerrit/owners/CompileStub.java"] |
| |
| java_library( |
| name = "gerrit-owners-lib", |
| srcs = glob([ |
| "src/main/java/**/*.java", |
| ]), |
| deps = [ |
| "@prolog_runtime//jar", |
| "//plugins/owners-common:owners-common", |
| ] + PLUGIN_DEPS + EXTERNAL_DEPS, |
| ) |
| |
| prolog_cafe_library( |
| name = "gerrit-owners-prolog-rules", |
| srcs = glob(["src/main/prolog/*.pl"]), |
| deps = [ |
| ":gerrit-owners-lib", |
| "//gerrit-server/src/main/prolog:common", |
| ], |
| ) |
| |
| gerrit_plugin( |
| name = "owners", |
| srcs = COMPILE_STUB, |
| manifest_entries = [ |
| "Implementation-Title: Gerrit OWNERS plugin", |
| "Implementation-URL: https://gerrit.googlesource.com/plugins/owners", |
| "Gerrit-PluginName: owners", |
| "Gerrit-Module: com.vmware.gerrit.owners.OwnersModule", |
| "Gerrit-ApiVersion: 2.14-SNAPSHOT", |
| ], |
| deps = [ |
| ":gerrit-owners-lib", |
| ":gerrit-owners-prolog-rules", |
| ] + EXTERNAL_DEPS, |
| resources = glob(["src/main/**/*"]), |
| ) |