Consume global-refdb from source
Refer to the global-refdb using the in-tree source code
cloned into the gerrit/src/plugins directory.
Change-Id: If451c0f187366c882a6a90db1fa7b5fdd54a4444
diff --git a/BUILD b/BUILD
index 80d202b..01ed84f 100644
--- a/BUILD
+++ b/BUILD
@@ -22,10 +22,16 @@
deps = [
"@jgroups//jar",
"@jgroups-kubernetes//jar",
- "@global-refdb//jar:neverlink",
+ ":global-refdb-neverlink",
],
)
+java_library(
+ name = "global-refdb-neverlink",
+ neverlink = 1,
+ exports = ["//plugins/global-refdb"],
+)
+
junit_tests(
name = "high-availability_tests",
srcs = glob(["src/test/java/**/*.java"]),
diff --git a/Jenkinsfile b/Jenkinsfile
index 0c516ca..98183a5 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -1,2 +1,3 @@
pluginPipeline(formatCheckId: 'gerritforge:plugins-high-availability-code-style',
- buildCheckId: 'gerritforge:plugins-high-availability-build-test')
+ buildCheckId: 'gerritforge:plugins-high-availability-build-test',
+ extraModules: ['global-refdb'])