File tree 1 file changed +7
-4
lines changed
1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -244,23 +244,26 @@ scala_deps = module_extension(
244
244
tag_classes = _tag_classes ,
245
245
doc = """Selects and configures builtin toolchains.
246
246
247
- If the root module explicitly uses the extension, it assumes responsibility for
248
- selecting all required toolchains by insantiating the corresponding tag classes:
247
+ Modules throughout the dependency graph can enable a builtin toolchain by
248
+ instantiating its corresponding tag class. The root module controls the
249
+ configuration of all toolchains it directly enables. Any other builtin
250
+ toolchain required by other modules will use that toolchain's default
251
+ configuration values.
249
252
250
253
```py
251
254
scala_deps = use_extension(
252
255
"@rules_scala//scala/extensions:deps.bzl",
253
256
"scala_deps",
254
257
)
255
258
scala_deps.scala()
256
- scala_deps.scala_proto()
259
+ scala_deps.scala_proto(default_gen_opts = ["grpc", "scala3_sources"] )
257
260
258
261
dev_deps = use_extension(
259
262
"@rules_scala//scala/extensions:deps.bzl",
260
263
"scala_deps",
261
264
dev_dependency = True,
262
265
)
263
- dev_deps.scalafmt()
266
+ dev_deps.scalafmt(default_config = "path/to/scalafmt.conf" )
264
267
dev_deps.scalatest()
265
268
266
269
# And so on...
You can’t perform that action at this time.
0 commit comments