Merge branch 'stable-2.14' into stable-2.15
* stable-2.14:
Fix name of prolog dependency
Format BUILD file with buildifier
Change-Id: Ib2473631f3487cfd653a13bd12f54a8f3a90be4a
diff --git a/BUILD b/BUILD
index 72c2671..d74d150 100644
--- a/BUILD
+++ b/BUILD
@@ -1,47 +1,47 @@
load("//lib/prolog:prolog.bzl", "prolog_cafe_library")
load("//tools/bzl:junit.bzl", "junit_tests")
-load("//tools/bzl:plugin.bzl", "gerrit_plugin", "PLUGIN_DEPS", "PLUGIN_TEST_DEPS")
+load("//tools/bzl:plugin.bzl", "PLUGIN_DEPS", "PLUGIN_TEST_DEPS", "gerrit_plugin")
java_library(
- name = 'find-owners-lib',
- srcs = glob(['src/main/java/**/*.java']),
- deps = PLUGIN_DEPS + ['@prolog_runtime//jar'],
+ name = "find-owners-lib",
+ srcs = glob(["src/main/java/**/*.java"]),
+ deps = PLUGIN_DEPS + ["@prolog-runtime//jar"],
)
prolog_cafe_library(
- name = 'find-owners-prolog-rules',
- srcs = glob(['src/main/prolog/*.pl']),
- deps = [
- ':find-owners-lib',
- '//gerrit-server:prolog-common',
- ],
+ name = "find-owners-prolog-rules",
+ srcs = glob(["src/main/prolog/*.pl"]),
+ deps = [
+ ":find-owners-lib",
+ "//gerrit-server:prolog-common",
+ ],
)
gerrit_plugin(
- name = 'find-owners',
- srcs = glob(['src/main/java/**/Module.java']),
- resources = glob(['src/main/resources/**/*']),
- manifest_entries = [
- 'Gerrit-PluginName: find-owners',
- 'Gerrit-ReloadMode: restart',
- 'Gerrit-Module: com.googlesource.gerrit.plugins.findowners.Module',
- 'Implementation-Title: Find-Owners plugin',
- 'Implementation-URL: https://gerrit.googlesource.com/plugins/find-owners',
- ],
- deps = [
- ':find-owners-lib',
- ':find-owners-prolog-rules',
- ],
+ name = "find-owners",
+ srcs = glob(["src/main/java/**/Module.java"]),
+ manifest_entries = [
+ "Gerrit-PluginName: find-owners",
+ "Gerrit-ReloadMode: restart",
+ "Gerrit-Module: com.googlesource.gerrit.plugins.findowners.Module",
+ "Implementation-Title: Find-Owners plugin",
+ "Implementation-URL: https://gerrit.googlesource.com/plugins/find-owners",
+ ],
+ resources = glob(["src/main/resources/**/*"]),
+ deps = [
+ ":find-owners-lib",
+ ":find-owners-prolog-rules",
+ ],
)
junit_tests(
- name = 'findowners_tests',
- srcs = glob(['src/test/java/**/*.java']),
- # resources = glob(['src/test/resources/**/*']),
- tags = ['findowners'],
- deps = PLUGIN_DEPS + PLUGIN_TEST_DEPS + [
- '@commons_io//jar',
- ':find-owners-lib',
- ':find-owners-prolog-rules',
- ],
+ name = "findowners_tests",
+ srcs = glob(["src/test/java/**/*.java"]),
+ # resources = glob(['src/test/resources/**/*']),
+ tags = ["findowners"],
+ deps = PLUGIN_DEPS + PLUGIN_TEST_DEPS + [
+ "@commons_io//jar",
+ ":find-owners-lib",
+ ":find-owners-prolog-rules",
+ ],
)