-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMODULE.bazel
More file actions
54 lines (48 loc) · 1.77 KB
/
MODULE.bazel
File metadata and controls
54 lines (48 loc) · 1.77 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
module(name = "events-log")
bazel_dep(name = "rules_jvm_external", version = "6.10")
bazel_dep(name = "com_googlesource_gerrit_bazlets")
git_override(
module_name = "com_googlesource_gerrit_bazlets",
commit = "202b90383675fd8a759a865a4e0efe75de9a8932",
remote = "https://gerrit.googlesource.com/bazlets",
)
GERRIT_API_VERS = "3.13.5"
gerrit_api_version = use_repo_rule("@com_googlesource_gerrit_bazlets//:gerrit_api_version.bzl", "gerrit_api_version")
gerrit_api_version(
name = "gerrit_api_version",
version = GERRIT_API_VERS,
visibility = ["//visibility:public"],
)
maven = use_extension("@rules_jvm_external//:extensions.bzl", "maven")
maven.install(
name = "external_plugin_deps",
artifacts = [
"com.google.gerrit:gerrit-plugin-api:" + GERRIT_API_VERS,
"com.google.gerrit:gerrit-acceptance-framework:" + GERRIT_API_VERS,
],
)
use_repo(maven, "external_plugin_deps")
maven.install(
name = "events-log_plugin_deps",
artifacts = [
"com.zaxxer:HikariCP:5.1.0",
# Required only for tests in standalone build mode. In Gerrit tree mode,
# this dependency is provided transitively by the acceptance framework.
"org.bouncycastle:bcpg-jdk18on:1.83",
],
duplicate_version_warning = "error",
excluded_artifacts = [
# Gerrit core already provides slf4j-api. Exclude it here to avoid
# bundling duplicate classes or causing runtime version conflicts.
"org.slf4j:slf4j-api",
],
fail_if_repin_required = True,
fail_on_missing_checksum = True,
fetch_sources = True,
lock_file = "//:events-log_plugin_deps.lock.json",
repositories = [
"https://repo1.maven.org/maven2",
],
version_conflict_policy = "pinned",
)
use_repo(maven, "events-log_plugin_deps")