You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Configures a Scala compiler that's used for compiling the Scala targets used by `configure_zinc_scala`. You probably want `configure_zinc_scala` instead (even if you're not using incremental compilation), as this rule doesn't support features like dependency checking and compilation workers.
17
-
18
-
**ATTRIBUTES**
19
-
20
-
21
-
| Name | Description | Type | Mandatory | Default |
| <aid="configure_bootstrap_scala-name"></a>name | A unique name for this target. | <ahref="https://bazel.build/concepts/labels#target-names">Name</a> | required ||
24
-
| <aid="configure_bootstrap_scala-compiler_classpath"></a>compiler_classpath | JVM targets that will always be on the compiler classpath. Usually, this is the compiler itself and the standard library. | <ahref="https://bazel.build/concepts/labels">List of labels</a> | required ||
25
-
| <aid="configure_bootstrap_scala-global_plugins"></a>global_plugins | scalac plugins that will always be enabled. | <ahref="https://bazel.build/concepts/labels">List of labels</a> | optional |`[]`|
26
-
| <aid="configure_bootstrap_scala-global_scalacopts"></a>global_scalacopts | scalac options that will always be enabled. | List of strings | optional |`[]`|
27
-
| <aid="configure_bootstrap_scala-runtime_classpath"></a>runtime_classpath | JVM targets that will always be on the runtime classpath. Usually, this is the standard library. | <ahref="https://bazel.build/concepts/labels">List of labels</a> | required ||
28
-
| <aid="configure_bootstrap_scala-semanticdb_bundle"></a>semanticdb_bundle | Whether to bundle SemanticDB files in the resulting JAR. Note that in Scala 2, this requires the SemanticDB compiler plugin. | Boolean | optional |`True`|
29
-
| <aid="configure_bootstrap_scala-use_ijar"></a>use_ijar | Whether to use ijar for this compiler. See https://github.com/bazelbuild/bazel/blob/master/third_party/ijar/README.txt for more information. | Boolean | optional |`True`|
30
-
| <aid="configure_bootstrap_scala-version"></a>version | The Scala version this compiler corresponds to. | String | required ||
@@ -71,7 +43,7 @@ To run the program: `bazel run <target>`
71
43
| <aid="scala_binary-resource_jars"></a>resource_jars | The JARs to merge into the output JAR. | <ahref="https://bazel.build/concepts/labels">List of labels</a> | optional |`[]`|
72
44
| <aid="scala_binary-resource_strip_prefix"></a>resource_strip_prefix | The path prefix to strip from classpath resources. | String | optional |`""`|
73
45
| <aid="scala_binary-runtime_deps"></a>runtime_deps | The JVM runtime-only library dependencies. | <ahref="https://bazel.build/concepts/labels">List of labels</a> | optional |`[]`|
74
-
| <aid="scala_binary-scala"></a>scala| The Scala compiler to use (a `configure_bootstrap_scala` or `configure_zinc_scala`target). Defaults to the `default_scala` target specified in the WORKSPACE file. | <ahref="https://bazel.build/concepts/labels">Label</a> | optional |`"@//external:default_scala"`|
46
+
| <aid="scala_binary-scala_toolchain_name"></a>scala_toolchain_name| The name of the Scala toolchain to use for this target (as provided to `register_*_toolchain`) | String | optional |`""`|
75
47
| <aid="scala_binary-scalacopts"></a>scalacopts | The Scalac options. | List of strings | optional |`[]`|
| <aid="scala_library-resource_jars"></a>resource_jars | The JARs to merge into the output JAR. | <ahref="https://bazel.build/concepts/labels">List of labels</a> | optional |`[]`|
138
110
| <aid="scala_library-resource_strip_prefix"></a>resource_strip_prefix | The path prefix to strip from classpath resources. | String | optional |`""`|
139
111
| <aid="scala_library-runtime_deps"></a>runtime_deps | The JVM runtime-only library dependencies. | <ahref="https://bazel.build/concepts/labels">List of labels</a> | optional |`[]`|
140
-
| <aid="scala_library-scala"></a>scala| The Scala compiler to use (a `configure_bootstrap_scala` or `configure_zinc_scala`target). Defaults to the `default_scala` target specified in the WORKSPACE file. | <ahref="https://bazel.build/concepts/labels">Label</a> | optional |`"@//external:default_scala"`|
112
+
| <aid="scala_library-scala_toolchain_name"></a>scala_toolchain_name| The name of the Scala toolchain to use for this target (as provided to `register_*_toolchain`) | String | optional |`""`|
141
113
| <aid="scala_library-scalacopts"></a>scalacopts | The Scalac options. | List of strings | optional |`[]`|
Launches a REPL with all given dependencies available.
@@ -164,7 +136,7 @@ To run: `bazel run <target>`
164
136
| <aid="scala_repl-deps"></a>deps | Dependencies that should be made available to the REPL. | <ahref="https://bazel.build/concepts/labels">List of labels</a> | optional |`[]`|
165
137
| <aid="scala_repl-data"></a>data | The additional runtime files needed by this REPL. | <ahref="https://bazel.build/concepts/labels">List of labels</a> | optional |`[]`|
166
138
| <aid="scala_repl-jvm_flags"></a>jvm_flags | The JVM runtime flags. | List of strings | optional |`[]`|
167
-
| <aid="scala_repl-scala"></a>scala| The Scala compiler to use (a `configure_bootstrap_scala` or `configure_zinc_scala`target). Defaults to the `default_scala` target specified in the WORKSPACE file. | <ahref="https://bazel.build/concepts/labels">Label</a> | optional |`"@//external:default_scala"`|
139
+
| <aid="scala_repl-scala_toolchain_name"></a>scala_toolchain_name| The name of the Scala toolchain to use for this target (as provided to `register_*_toolchain`) | String | optional |`""`|
168
140
| <aid="scala_repl-scalacopts"></a>scalacopts | Options to pass to scalac. | List of strings | optional |`[]`|
| <aid="scala_test-runtime_deps"></a>runtime_deps | The JVM runtime-only library dependencies. | <ahref="https://bazel.build/concepts/labels">List of labels</a> | optional |`[]`|
213
-
| <aid="scala_test-scala"></a>scala| The Scala compiler to use (a `configure_bootstrap_scala` or `configure_zinc_scala`target). Defaults to the `default_scala` target specified in the WORKSPACE file. | <ahref="https://bazel.build/concepts/labels">Label</a> | optional |`"@//external:default_scala"`|
185
+
| <aid="scala_test-scala_toolchain_name"></a>scala_toolchain_name| The name of the Scala toolchain to use for this target (as provided to `register_*_toolchain`) | String | optional |`""`|
214
186
| <aid="scala_test-scalacopts"></a>scalacopts | Options to pass to scalac. | List of strings | optional |`[]`|
215
187
| <aid="scala_test-shared_deps"></a>shared_deps | If isolation is "classloader", the list of deps to keep loaded between tests | <ahref="https://bazel.build/concepts/labels">List of labels</a> | optional |`[]`|
| <aid="scaladoc-deps"></a>deps | Dependencies that should be made available to the Scaladoc tool. These may include libraries referenced in Scaladoc or public signatures. | <ahref="https://bazel.build/concepts/labels">List of labels</a> | optional |`[]`|
238
210
| <aid="scaladoc-srcs"></a>srcs | Sources from which to generate Scaladoc. These may include `*.java` files, `*.scala` files, and source JARs. | <ahref="https://bazel.build/concepts/labels">List of labels</a> | optional |`[]`|
239
211
| <aid="scaladoc-compiler_deps"></a>compiler_deps | JVM targets that should be included on the compile classpath. | <ahref="https://bazel.build/concepts/labels">List of labels</a> | optional |`[]`|
240
-
| <aid="scaladoc-scala"></a>scala| The Scala compiler to use (a `configure_bootstrap_scala` or `configure_zinc_scala`target). Defaults to the `default_scala` target specified in the WORKSPACE file. | <ahref="https://bazel.build/concepts/labels">Label</a> | optional |`"@//external:default_scala"`|
212
+
| <aid="scaladoc-scala_toolchain_name"></a>scala_toolchain_name| The name of the Scala toolchain to use for this target (as provided to `register_*_toolchain`) | String | optional |`""`|
241
213
| <aid="scaladoc-scalacopts"></a>scalacopts | Options to pass to scalac. | List of strings | optional |`[]`|
242
214
| <aid="scaladoc-title"></a>title | The name of the project. If none is provided, the target label will be used. | String | optional |`""`|
| <aid="configure_zinc_scala-compiler_bridge"></a>compiler_bridge | The compiler bridge (org.scala-sbt.compiler-bridge). | none |
268
-
| <aid="configure_zinc_scala-compiler_classpath"></a>compiler_classpath | JVM targets that will always be on the compiler classpath. Usually, this is the compiler itself and the standard library. | none |
269
-
| <aid="configure_zinc_scala-version"></a>version | The Scala version this compiler corresponds to. | none |
270
-
| <aid="configure_zinc_scala-global_plugins"></a>global_plugins | scalac plugins that will always be enabled. |`[]`|
271
-
| <aid="configure_zinc_scala-global_scalacopts"></a>global_scalacopts | scalac options that will always be enabled. |`[]`|
272
-
| <aid="configure_zinc_scala-incremental"></a>incremental | Whether Zinc's incremental compilation will be available for this Zinc compiler. If True, this requires additional configuration to use incremental compilation. |`False`|
273
-
| <aid="configure_zinc_scala-log_level"></a>log_level | The compiler log level. One of "error", "warn", "info", "debug", or "none". |`"warn"`|
274
-
| <aid="configure_zinc_scala-runtime_classpath"></a>runtime_classpath | JVM targets that will always be on the runtime classpath. Usually, this is the standard library. |`[]`|
275
-
| <aid="configure_zinc_scala-semanticdb_bundle"></a>semanticdb_bundle | Whether to bundle SemanticDB files in the resulting JAR. Note that in Scala 2, this requires the SemanticDB compiler plugin. |`True`|
276
-
| <aid="configure_zinc_scala-use_ijar"></a>use_ijar | Whether to use ijar for this compiler. See https://github.com/bazelbuild/bazel/blob/master/third_party/ijar/README.txt for more information. |`True`|
0 commit comments