forked from bazel-contrib/rules_scala
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdefault_deps.bzl
More file actions
69 lines (63 loc) · 2.54 KB
/
default_deps.bzl
File metadata and controls
69 lines (63 loc) · 2.54 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
# These are the compile/runtime dependencies needed for scalapb compilation
# and grpc compile/runtime.
#
# In a complex environment you may want to update the toolchain to not refer to
# these anymore If you are using a resolver (like bazel-deps) that can export
# compile + runtime jar paths for you, then you should only need much shorter
# dependency lists. This needs to be the unrolled transitive path to be used
# without such a facility.
load("//scala:scala_cross_version.bzl", "repositories")
load("//scala:scala_cross_version_select.bzl", "select_for_scala_version")
load("@rules_scala_config//:config.bzl", "SCALA_VERSION")
_DEFAULT_DEP_PROVIDER_FORMAT = (
"@rules_scala_toolchains//scala_proto:scalapb_%s_deps_provider"
)
def scala_proto_deps_providers(
compile = _DEFAULT_DEP_PROVIDER_FORMAT % "compile",
worker = _DEFAULT_DEP_PROVIDER_FORMAT % "worker"):
return [compile, worker]
DEFAULT_SCALAPB_COMPILE_DEPS = [
Label("//scala/private/toolchain_deps:scala_library_classpath"),
"@com_google_protobuf//:protobuf_java",
"@com_lihaoyi_fastparse",
"@scala_proto_rules_scalapb_lenses",
"@scala_proto_rules_scalapb_runtime",
]
DEFAULT_SCALAPB_GRPC_DEPS = [
"@io_bazel_rules_scala_guava",
"@org_jspecify_jspecify",
"@scala_proto_rules_disruptor",
"@scala_proto_rules_grpc_api",
"@scala_proto_rules_grpc_context",
"@scala_proto_rules_grpc_core",
"@scala_proto_rules_grpc_netty",
"@scala_proto_rules_grpc_protobuf",
"@scala_proto_rules_grpc_stub",
"@scala_proto_rules_instrumentation_api",
"@scala_proto_rules_netty_buffer",
"@scala_proto_rules_netty_codec",
"@scala_proto_rules_netty_codec_http",
"@scala_proto_rules_netty_codec_http2",
"@scala_proto_rules_netty_codec_socks",
"@scala_proto_rules_netty_common",
"@scala_proto_rules_netty_handler",
"@scala_proto_rules_netty_handler_proxy",
"@scala_proto_rules_netty_resolver",
"@scala_proto_rules_netty_transport",
"@scala_proto_rules_opencensus_api",
"@scala_proto_rules_opencensus_contrib_grpc_metrics",
"@scala_proto_rules_opencensus_impl",
"@scala_proto_rules_opencensus_impl_core",
"@scala_proto_rules_perfmark_api",
"@scala_proto_rules_scalapb_runtime_grpc",
]
DEFAULT_SCALAPB_WORKER_DEPS = [
"@com_google_protobuf//:protobuf_java",
"@scala_proto_rules_scalapb_compilerplugin",
"@scala_proto_rules_scalapb_protoc_bridge",
] + select_for_scala_version(
any_2_11 = [],
since_2_12 = repositories(SCALA_VERSION, [
"@scala_proto_rules_scalapb_protoc_gen",
]),
)