File tree 3 files changed +7
-17
lines changed
examples/testing/multi_frameworks_toolchain
3 files changed +7
-17
lines changed Original file line number Diff line number Diff line change @@ -105,21 +105,10 @@ register_toolchains("//toolchains:my_scala_toolchain")
105
105
106
106
When using your own JARs for every ` setup_scala_toolchain() ` argument, while
107
107
using ` scala_deps ` or` scala_toolchains() ` to instantiate other builtin
108
- toolchains, set ` scala = False ` :
108
+ toolchains:
109
109
110
- ``` py
111
- # MODULE.bazel
112
- scala_deps.toolchains(
113
- scala = False ,
114
- # ...other toolchain parameters...
115
- )
116
-
117
- # WORKSPACE
118
- scala_toolchains(
119
- scala = False ,
120
- # ...other toolchain parameters...
121
- )
122
- ```
110
+ - Bzlmod: Don't instantiate ` scala_deps.scala() ` .
111
+ - ` WORKSPACE ` : Call ` scala_toolchains(scala = False, ...) ` .
123
112
124
113
Otherwise, ` scala_deps ` or ` scala_toolchains() ` will try to instantiate a
125
114
default Scala toolchain and its compiler JAR repositories. The build will then
@@ -131,7 +120,7 @@ set `validate_scala_version = False` to disable the Scala version check.
131
120
132
121
``` py
133
122
# MODULE.bazel
134
- scala_deps.toolchains (
123
+ scala_deps.settings (
135
124
validate_scala_version = False ,
136
125
# ...other toolchain parameters...
137
126
)
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ scala_deps.junit()
34
34
scala_deps .scalatest ()
35
35
scala_deps .specs2 ()
36
36
37
- # Under normal circumstances, the above `scala_deps.toolchains()` registration
37
+ # Under normal circumstances, the above `scala_deps` tag class instantiations
38
38
# would be all you need. rules_scala will set up and register the toolchains
39
39
# automatically.
40
40
#
Original file line number Diff line number Diff line change @@ -50,7 +50,8 @@ _settings_attrs = {
50
50
doc = (
51
51
"Check if the configured Scala version matches " +
52
52
"the default version supported by rules_scala. " +
53
- "Only takes effect if `scala_deps.toolchains(scala = True)`."
53
+ "Only takes effect when the builtin Scala toolchain is " +
54
+ "instantiated via `scala_deps.scala()`."
54
55
),
55
56
),
56
57
}
You can’t perform that action at this time.
0 commit comments