forked from grpc/grpc-kotlin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMODULE.bazel
47 lines (44 loc) · 1.43 KB
/
MODULE.bazel
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
module(
name = "grpc-kotlin",
version = "0.0.0",
repo_name = "com_github_grpc_grpc_kotlin",
)
bazel_dep(name = "rules_jvm_external", version = "6.1")
bazel_dep(name = "rules_proto", version = "6.0.0")
bazel_dep(
name = "grpc-java",
version = "1.62.2",
repo_name = "io_grpc_grpc_java",
)
bazel_dep(
name = "protobuf",
version = "24.4", # Latest doesn't seem to work. TODO: Pick the latest working version...
repo_name = "com_google_protobuf",
)
bazel_dep(name = "rules_kotlin", version = "1.9.5", repo_name = "io_bazel_rules_kotlin")
IO_GRPC_GRPC_KOTLIN_ARTIFACTS = [
"com.google.guava:guava:32.0.1-android",
"com.squareup:kotlinpoet:1.14.2",
"org.jetbrains.kotlinx:kotlinx-coroutines-core:1.7.3",
"org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.7.3",
"org.jetbrains.kotlinx:kotlinx-coroutines-debug:1.7.3",
]
maven = use_extension("@rules_jvm_external//:extensions.bzl", "maven")
maven.install(
name = "grpc_kotlin_maven",
artifacts = [
"io.grpc:protoc-gen-grpc-kotlin:1.4.1",
"com.google.jimfs:jimfs:1.3.0",
"com.google.truth.extensions:truth-proto-extension:1.1.3",
"com.google.protobuf:protobuf-kotlin:4.27.1",
] + IO_GRPC_GRPC_KOTLIN_ARTIFACTS,
generate_compat_repositories = True,
repositories = [
"https://repo.maven.apache.org/maven2/",
],
)
use_repo(
maven,
"com_google_guava_guava",
maven = "grpc_kotlin_maven",
)