Skip to content

Commit 27adb8d

Browse files
authored
Enable bzlmod (#206)
Also upgrade Bazel to 7.1.0. I have a follow up change that makes `fineGrainedHashExternalRepos` works with bzlmod and this is a prerequisite to make the integration test support bzlmod. Unfortunately due to bazelbuild/bazel#21010 cquery mode is not working with Bazel 7 as for now.
1 parent 5a4c8eb commit 27adb8d

File tree

11 files changed

+4515
-308
lines changed

11 files changed

+4515
-308
lines changed

.bazelversion

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
6.4.0
1+
7.1.0

MODULE.bazel

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,29 @@
44
#
55
# For more details, please check https://github.com/bazelbuild/bazel/issues/18958
66
###############################################################################
7+
8+
bazel_dep(name = "bazel_skylib", version = "1.5.0")
9+
bazel_dep(name = "rules_proto", version = "6.0.0-rc2")
10+
bazel_dep(name = "rules_kotlin", version = "1.9.1")
11+
bazel_dep(name = "rules_jvm_external", version = "6.0")
12+
13+
maven = use_extension("@rules_jvm_external//:extensions.bzl", "maven")
14+
maven.install(
15+
artifacts = [
16+
"com.google.code.gson:gson:jar:2.9.0",
17+
"com.google.guava:guava:31.1-jre",
18+
"com.willowtreeapps.assertk:assertk-jvm:0.25",
19+
"info.picocli:picocli:jar:4.6.3",
20+
"io.insert-koin:koin-core-jvm:3.1.6",
21+
"io.insert-koin:koin-test-junit4:3.1.6",
22+
"junit:junit:4.13.2",
23+
"org.apache.commons:commons-pool2:2.11.1",
24+
"org.jetbrains.kotlinx:kotlinx-coroutines-core:1.5.2",
25+
"org.mockito.kotlin:mockito-kotlin:4.0.0",
26+
],
27+
lock_file = "//:maven_install.json",
28+
)
29+
use_repo(
30+
maven,
31+
bazel_diff_maven = "maven",
32+
)

0 commit comments

Comments
 (0)