-
Notifications
You must be signed in to change notification settings - Fork 84
Expand file tree
/
Copy pathMODULE.bazel
More file actions
101 lines (89 loc) · 3.97 KB
/
Copy pathMODULE.bazel
File metadata and controls
101 lines (89 loc) · 3.97 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
module(
name = "bazel-diff",
version = "37.0.0",
compatibility_level = 0,
)
bazel_dep(name = "rules_license", version = "1.0.0", dev_dependency = True)
bazel_dep(name = "aspect_rules_lint", version = "2.1.0", dev_dependency = True)
bazel_dep(name = "buildifier_prebuilt", version = "8.5.1.2", dev_dependency = True)
bazel_dep(name = "aspect_bazel_lib", version = "2.22.5", dev_dependency = True)
bazel_dep(name = "bazel_skylib", version = "1.9.0")
bazel_dep(name = "rules_proto", version = "7.1.0")
bazel_dep(name = "rules_java", version = "9.7.0")
bazel_dep(name = "rules_kotlin", version = "2.4.0")
bazel_dep(name = "rules_jvm_external", version = "6.10")
# Add protobuf and grpc for Bazel 9 compatibility
bazel_dep(name = "protobuf", version = "33.4")
bazel_dep(name = "stardoc", version = "0.7.2")
single_version_override(
module_name = "grpc-java",
version = "1.78.0",
)
bazel_dep(name = "grpc", version = "1.76.0", repo_name = "com_github_grpc_grpc")
# Override transitive dependencies to Bazel 9 compatible versions.
# Marked dev_dependency: these are only needed when building bazel-diff itself
# (as the root module). rules_nodejs and rules_foreign_cc are not referenced by
# any bazel-diff target, and rules_python is supplied transitively (proto codegen)
# regardless, so consumers resolve their own versions via MVS.
bazel_dep(name = "rules_nodejs", version = "6.7.3", dev_dependency = True)
bazel_dep(name = "rules_foreign_cc", version = "0.15.1", dev_dependency = True)
bazel_dep(name = "rules_python", version = "1.8.4", dev_dependency = True)
# Go support is internal to building/testing bazel-diff (tooling under tools/go,
# whose line coverage is gated at >=90% in CI). Marked dev_dependency so consumers
# of bazel-diff as a module don't inherit rules_go/gazelle via MVS.
bazel_dep(name = "rules_go", version = "0.60.0", dev_dependency = True)
bazel_dep(name = "gazelle", version = "0.45.0", dev_dependency = True)
go_sdk = use_extension("@rules_go//go:extensions.bzl", "go_sdk", dev_dependency = True)
go_sdk.download(version = "1.23.1")
maven = use_extension("@rules_jvm_external//:extensions.bzl", "maven")
maven.install(
name = "bazel_diff_maven",
artifacts = [
"com.google.code.gson:gson:2.14.0@jar",
"com.google.guava:guava:33.6.0-jre",
"com.willowtreeapps.assertk:assertk-jvm:0.28.1",
"info.picocli:picocli:4.7.7@jar",
"io.insert-koin:koin-core-jvm:4.2.2",
"io.insert-koin:koin-test-junit4:4.2.2",
"junit:junit:4.13.2",
"org.apache.commons:commons-pool2:2.13.1",
"org.jetbrains.kotlinx:kotlinx-coroutines-core:1.11.0",
"org.mockito.kotlin:mockito-kotlin:6.3.0",
"software.amazon.awssdk:url-connection-client:2.46.7",
],
fail_if_repin_required = True,
lock_file = "//:maven_install.json",
)
# AWS SDK for the `serve` S3 hash-cache backend. The Netty/Apache HTTP clients are
# excluded (the service explicitly uses the lightweight url-connection-client above)
# to keep the deploy jar lean. `sts` is runtime-only: DefaultCredentialsProvider needs
# it to assume the pod's IAM role via web identity (IRSA) when running on EKS.
maven.artifact(
name = "bazel_diff_maven",
artifact = "s3",
exclusions = [
"software.amazon.awssdk:netty-nio-client",
"software.amazon.awssdk:apache-client",
"software.amazon.awssdk:apache5-client",
],
group = "software.amazon.awssdk",
version = "2.46.7",
)
maven.artifact(
name = "bazel_diff_maven",
artifact = "sts",
exclusions = [
"software.amazon.awssdk:netty-nio-client",
"software.amazon.awssdk:apache-client",
"software.amazon.awssdk:apache5-client",
],
group = "software.amazon.awssdk",
version = "2.46.7",
)
use_repo(
maven,
bazel_diff_maven = "bazel_diff_maven",
)
non_module_repositories = use_extension("//:extensions.bzl", "non_module_repositories", dev_dependency = True)
use_repo(non_module_repositories, "ktfmt")
register_toolchains("//:kotlin_toolchain")