diff --git a/.bazelrc b/.bazelrc index 5ffdbdc80..ca0bab4e0 100644 --- a/.bazelrc +++ b/.bazelrc @@ -1,4 +1,5 @@ common --config=rules common:v5.0 --config=rules_v5.0 common:v6.3 --config=rules_v6.3 +common:v7.0 --config=rules_v7.0 import %workspace%/.bazelrc_shared diff --git a/.bazelrc_shared b/.bazelrc_shared index fc3ed9111..d86b754b0 100644 --- a/.bazelrc_shared +++ b/.bazelrc_shared @@ -1,5 +1,6 @@ common --announce_rc common --color=yes +common --noenable_bzlmod build --experimental_strict_action_env build --javacopt="-source 11 -target 11" @@ -28,6 +29,7 @@ test --test_output=all common:rules_v5.0 --config=noop common:rules_v6.3 --config=noop +common:rules_v7.0 --config=noop # route potentially unrouted configs to a terminating noop config # it's a noop because we use the default value @@ -35,6 +37,7 @@ common:rules --config=noop common:tests --config=noop common:v5.0 --config=rules_v5.0 common:v6.3 --config=rules_v6.3 +common:v7.0 --config=rules_v7.0 # pick something trivial as a "noop" common:noop --logging=3 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8e22aa443..5d9d0f23f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,7 +14,7 @@ jobs: fail-fast: false matrix: os: [ubuntu-20.04] - bazel_version: [5.0.0, 6.3.2] + bazel_version: [6.3.2, 7.0.0] steps: - uses: actions/checkout@v3 - run: ./scripts/ci.sh build diff --git a/WORKSPACE b/WORKSPACE index f9530955c..1fa2da66c 100644 --- a/WORKSPACE +++ b/WORKSPACE @@ -17,17 +17,6 @@ http_archive( ], ) -skydoc_tag = "0.3.0" - -skydoc_sha256 = "8762a212cff5f81505a1632630edcfe9adce381479a50a03c968bd2fc217972d" - -http_archive( - name = "io_bazel_skydoc", - sha256 = skydoc_sha256, - strip_prefix = "skydoc-{}".format(skydoc_tag), - url = "https://github.com/bazelbuild/skydoc/archive/{}.zip".format(skydoc_tag), -) - # com_github_bazelbuild_buildtools buildtools_tag = "0.29.0" @@ -47,13 +36,13 @@ buildifier_dependencies() # io_bazel_rules_go -rules_go_tag = "v0.28.0" +rules_go_tag = "v0.43.0" rules_go_sha256 = "8e968b5fcea1d2d64071872b12737bbb5514524ee5f0a4f54f5920266c261acb" http_archive( name = "io_bazel_rules_go", - sha256 = rules_go_sha256, + integrity = "sha256-1qtrV+SMCVI+kwUPE2mPcIQoz9XmGSUuNp03evZZdwc=", urls = [ "https://storage.googleapis.com/bazel-mirror/github.com/bazelbuild/rules_go/releases/download/{tag}/rules_go-{tag}.zip".format(tag = rules_go_tag), "https://github.com/bazelbuild/rules_go/releases/download/{tag}/rules_go-{tag}.zip".format(tag = rules_go_tag), diff --git a/docs/stardoc/external.md b/docs/stardoc/external.md deleted file mode 100644 index ee4aeee79..000000000 --- a/docs/stardoc/external.md +++ /dev/null @@ -1,82 +0,0 @@ - - - - -## scala_import_external - -
-scala_import_external(rule_load, kwargs) -- - - -### Parameters - -
rule_load |
-
- optional. default is "load(\"@rules_scala_annex//rules:scala.bzl\", \"scala_import\")"
- |
-
kwargs |
- - optional. - | -
-scala_maven_import_external(artifact, server_urls, rule_load, kwargs) -- - - -### Parameters - -
artifact |
- - required. - | -
server_urls |
- - required. - | -
rule_load |
-
- optional. default is "load(\"@rules_scala_annex//rules:scala.bzl\", \"scala_import\")"
- |
-
kwargs |
- - optional. - | -
-declare_scala_configuration(name, compiler_classpath, global_plugins, global_scalacopts, runtime_classpath, version) -- -Creates a `ScalaConfiguration`. - -### Attributes - -
name |
-
- Name; required
- - A unique name for this target. - - |
-
compiler_classpath |
- - List of labels; required - | -
global_plugins |
-
- List of labels; optional
- - Scalac plugins that will always be enabled. - - |
-
global_scalacopts |
-
- List of strings; optional
- - Scalac options that will always be enabled. - - |
-
runtime_classpath |
- - List of labels; required - | -
version |
- - String; required - | -
-declare_zinc_configuration(name, compiler_bridge) -- -Creates a `ZincConfiguration`. - -### Attributes - -
name |
-
- Name; required
- - A unique name for this target. - - |
-
compiler_bridge |
- - Label; required - | -
-join_configurations(name, configurations) -- - - -### Attributes - -
name |
-
- Name; required
- - A unique name for this target. - - |
-
configurations |
- - List of labels; required - | -
-reconfigure_deps_configuration(name, direct, provider, used) -- - - -### Attributes - -
name |
-
- Name; required
- - A unique name for this target. - - |
-
direct |
- - String; optional - | -
provider |
- - Label; required - | -
used |
- - String; optional - | -
-CodeCoverageConfiguration(instrumentation_worker) -- -Code coverage related configuration - -### Fields - -
instrumentation_worker |
-
- the worker used for instrumenting jars - |
-
-DepsConfiguration(direct, used, worker) -- -Dependency checking configuration. - -### Fields - -
direct |
-
- either error or off - |
-
used |
-
- either error or off - |
-
worker |
-
- the worker label for checking used/unused deps - |
-
-IntellijInfo(outputs, transitive_exports) -- -Provider for IntelliJ. - -### Fields - -
outputs |
-
- java_output_jars - |
-
transitive_exports |
-
- labels of transitive dependencies - |
-
-LabeledJars(values) -- -Exported jars and their labels. - -### Fields - -
values |
-
- The preorder depset of label and jars. - |
-
-ScalaConfiguration(version, compiler_classpath, runtime_classpath, global_plugins, global_scalacopts, use_ijar) -- -Scala compile-time and runtime configuration - -### Fields - -
version |
-
- The Scala full version. - |
-
compiler_classpath |
-
- The compiler classpath. - |
-
runtime_classpath |
-
- The runtime classpath. - |
-
global_plugins |
-
- Globally enabled compiler plugins - |
-
global_scalacopts |
-
- Globally enabled compiler options - |
-
use_ijar |
-
- Whether to use ijars for this Scala compiler - |
-
-ScalaInfo(macro, scala_configuration) -- -Scala library. - -### Fields - -
macro |
-
- whether the jar contains macros - |
-
scala_configuration |
-
- ScalaConfiguration associated with this output - |
-
-ScalaRulePhase(phases) -- -A Scala compiler plugin - -### Fields - -
phases |
-
- the phases to add - |
-
-ZincConfiguration(compiler_bridge, compile_worker, log_level) -- -Zinc configuration. - -### Fields - -
compiler_bridge |
-
- compiled Zinc compiler bridge - |
-
compile_worker |
-
- the worker label for compilation with Zinc - |
-
log_level |
-
- log level for the Zinc compiler - |
-
-ZincInfo(apis, deps, deps_files, label, relations) -- -Zinc-specific outputs. - -### Fields - -
apis |
-
- The API file. - |
-
deps |
-
- The depset of library dependency outputs. - |
-
deps_files |
-
- The depset of all Zinc files. - |
-
label |
-
- The label for this output. - |
-
relations |
-
- The relations file. - |
-
-emulate_rules_scala_repository(name, extra_deps) -- - - -### Attributes - -
name |
-
- Name; required
- - A unique name for this repository. - - |
-
extra_deps |
- - List of labels; optional - | -
-emulate_rules_scala(scala, scalatest, extra_deps) -- - - -### Parameters - -
scala |
- - required. - | -
scalatest |
- - required. - | -
extra_deps |
-
- optional. default is []
- |
-
-configure_bootstrap_scala(name, compiler_classpath, global_plugins, global_scalacopts, runtime_classpath, use_ijar, version) -- - - -### Attributes - -
name |
-
- Name; required
- - A unique name for this target. - - |
-
compiler_classpath |
- - List of labels; required - | -
global_plugins |
-
- List of labels; optional
- - Scalac plugins that will always be enabled. - - |
-
global_scalacopts |
-
- List of strings; optional
- - Scalac options that will always be enabled. - - |
-
runtime_classpath |
- - List of labels; required - | -
use_ijar |
-
- Boolean; optional
- - Whether to use ijars for this compiler. Scala 3 currently cannot use ijars. - - |
-
version |
- - String; required - | -
-scala_binary(name, data, deps, deps_unused_whitelist, deps_used_whitelist, javacopts, jvm_flags, main_class, plugins, resource_jars, resource_strip_prefix, resources, runtime_deps, scala, scalacopts, srcs) -- - -Compiles and links a Scala JVM executable. - -Produces the following implicit outputs: - - - `
name |
-
- Name; required
- - A unique name for this target. - - |
-
data |
-
- List of labels; optional
- - The additional runtime files needed by this library. - - |
-
deps |
-
- List of labels; optional
- - The JVM library dependencies. - - |
-
deps_unused_whitelist |
-
- List of labels; optional
- - The JVM library dependencies to always consider unused for `scala_deps_direct` checks. - - |
-
deps_used_whitelist |
-
- List of labels; optional
- - The JVM library dependencies to always consider used for `scala_deps_used` checks. - - |
-
javacopts |
-
- List of strings; optional
- - The Javac options. - - |
-
jvm_flags |
-
- List of strings; optional
- - The JVM runtime flags. - - |
-
main_class |
-
- String; optional
- - The main class. If not provided, it will be inferred by its type signature. - - |
-
plugins |
-
- List of labels; optional
- - The Scalac plugins. - - |
-
resource_jars |
-
- List of labels; optional
- - The JARs to merge into the output JAR. - - |
-
resource_strip_prefix |
-
- String; optional
- - The path prefix to strip from classpath resources. - - |
-
resources |
-
- List of labels; optional
- - The files to include as classpath resources. - - |
-
runtime_deps |
-
- List of labels; optional
- - The JVM runtime-only library dependencies. - - |
-
scala |
-
- Label; optional
- - The `ScalaConfiguration`. Among other things, this specifies which scala version to use. - Defaults to the default_scala target specified in the WORKSPACE file. - - |
-
scalacopts |
-
- List of strings; optional
- - The Scalac options. - - |
-
srcs |
-
- List of labels; optional
- - The source Scala and Java files (and `.srcjar` files of those). - - |
-
-scala_import(name, deps, exports, jars, neverlink, runtime_deps, srcjar) -- - -Creates a Scala JVM library. - -Use this only for libraries with macros. Otherwise, use `java_import`. - - -### Attributes - -
name |
-
- Name; required
- - A unique name for this target. - - |
-
deps |
- - List of labels; optional - | -
exports |
- - List of labels; optional - | -
jars |
- - List of labels; optional - | -
neverlink |
- - Boolean; optional - | -
runtime_deps |
- - List of labels; optional - | -
srcjar |
- - Label; optional - | -
-scala_library(name, data, deps, deps_unused_whitelist, deps_used_whitelist, exports, javacopts, macro, neverlink, plugins, resource_jars, resource_strip_prefix, resources, runtime_deps, scala, scalacopts, srcs) -- -Compiles a Scala JVM library. - -### Attributes - -
name |
-
- Name; required
- - A unique name for this target. - - |
-
data |
-
- List of labels; optional
- - The additional runtime files needed by this library. - - |
-
deps |
-
- List of labels; optional
- - The JVM library dependencies. - - |
-
deps_unused_whitelist |
-
- List of labels; optional
- - The JVM library dependencies to always consider unused for `scala_deps_direct` checks. - - |
-
deps_used_whitelist |
-
- List of labels; optional
- - The JVM library dependencies to always consider used for `scala_deps_used` checks. - - |
-
exports |
-
- List of labels; optional
- - The JVM libraries to add as dependencies to any libraries dependent on this one. - - |
-
javacopts |
-
- List of strings; optional
- - The Javac options. - - |
-
macro |
-
- Boolean; optional
- - Whether this library provides macros. - - |
-
neverlink |
-
- Boolean; optional
- - Whether this library should be excluded at runtime. - - |
-
plugins |
-
- List of labels; optional
- - The Scalac plugins. - - |
-
resource_jars |
-
- List of labels; optional
- - The JARs to merge into the output JAR. - - |
-
resource_strip_prefix |
-
- String; optional
- - The path prefix to strip from classpath resources. - - |
-
resources |
-
- List of labels; optional
- - The files to include as classpath resources. - - |
-
runtime_deps |
-
- List of labels; optional
- - The JVM runtime-only library dependencies. - - |
-
scala |
-
- Label; optional
- - The `ScalaConfiguration`. Among other things, this specifies which scala version to use. - Defaults to the default_scala target specified in the WORKSPACE file. - - |
-
scalacopts |
-
- List of strings; optional
- - The Scalac options. - - |
-
srcs |
-
- List of labels; optional
- - The source Scala and Java files (and `.srcjar` files of those). - - |
-
-scala_repl(name, data, deps, jvm_flags, scala, scalacopts) -- - -Launches a REPL with all given dependencies available. - -To run: `bazel run
name |
-
- Name; required
- - A unique name for this target. - - |
-
data |
-
- List of labels; optional
- - The additional runtime files needed by this REPL. - - |
-
deps |
- - List of labels; optional - | -
jvm_flags |
-
- List of strings; optional
- - The JVM runtime flags. - - |
-
scala |
-
- Label; optional
- - The `ScalaConfiguration`. - - |
-
scalacopts |
-
- List of strings; optional
- - The Scalac options. - - |
-
-scala_test(name, data, deps, deps_unused_whitelist, deps_used_whitelist, frameworks, isolation, javacopts, jvm_flags, plugins, resource_jars, resource_strip_prefix, resources, runner, runtime_deps, scala, scalacopts, shared_deps, srcs, subprocess_runner) -- - -Compiles and links a collection of Scala tests. - -To buid and run all tests: `bazel test
name |
-
- Name; required
- - A unique name for this target. - - |
-
data |
-
- List of labels; optional
- - The additional runtime files needed by this library. - - |
-
deps |
-
- List of labels; optional
- - The JVM library dependencies. - - |
-
deps_unused_whitelist |
-
- List of labels; optional
- - The JVM library dependencies to always consider unused for `scala_deps_direct` checks. - - |
-
deps_used_whitelist |
-
- List of labels; optional
- - The JVM library dependencies to always consider used for `scala_deps_used` checks. - - |
-
frameworks |
- - List of strings; optional - | -
isolation |
-
- String; optional
- - The isolation level to apply - - |
-
javacopts |
-
- List of strings; optional
- - The Javac options. - - |
-
jvm_flags |
-
- List of strings; optional
- - The JVM runtime flags. - - |
-
plugins |
-
- List of labels; optional
- - The Scalac plugins. - - |
-
resource_jars |
-
- List of labels; optional
- - The JARs to merge into the output JAR. - - |
-
resource_strip_prefix |
-
- String; optional
- - The path prefix to strip from classpath resources. - - |
-
resources |
-
- List of labels; optional
- - The files to include as classpath resources. - - |
-
runner |
- - Label; optional - | -
runtime_deps |
-
- List of labels; optional
- - The JVM runtime-only library dependencies. - - |
-
scala |
-
- Label; optional
- - The `ScalaConfiguration`. Among other things, this specifies which scala version to use. - Defaults to the default_scala target specified in the WORKSPACE file. - - |
-
scalacopts |
- - List of strings; optional - | -
shared_deps |
-
- List of labels; optional
- - If isolation is "classloader", the list of deps to keep loaded between tests - - |
-
srcs |
-
- List of labels; optional
- - The source Scala and Java files (and `.srcjar` files of those). - - |
-
subprocess_runner |
- - Label; optional - | -
-scaladoc(name, compiler_deps, deps, scala, scalacopts, srcs, title) -- - -Generates Scaladocs. - - -### Attributes - -
name |
-
- Name; required
- - A unique name for this target. - - |
-
compiler_deps |
- - List of labels; optional - | -
deps |
- - List of labels; optional - | -
scala |
- - Label; optional - | -
scalacopts |
- - List of strings; optional - | -
srcs |
- - List of labels; optional - | -
title |
- - String; optional - | -
-configure_zinc_scala(kwargs) -- - - -### Parameters - -
kwargs |
- - optional. - | -
-make_scala_binary(extras) -- - - -### Parameters - -
extras |
- - optional. - | -
-make_scala_library(extras) -- - - -### Parameters - -
extras |
- - optional. - | -
-make_scala_test(extras) -- - - -### Parameters - -
extras |
- - optional. - | -
-scala_proto_library(name, deps, grpc) -- - -Generates Scala code from proto sources. The output is a `.srcjar` that can be passed into other rules for compilation. - -See example use in [/tests/proto/BUILD](/tests/proto/BUILD) - - -### Attributes - -
name |
-
- Name; required
- - A unique name for this target. - - |
-
deps |
-
- List of labels; optional
- - The proto_library targets you wish to generate Scala from - - |
-
grpc |
- - Boolean; optional - | -
-scala_proto_toolchain(name, compiler, compiler_supports_workers) -- - -Specifies a toolchain of the `@rules_scala_annex//rules/scala_proto:compiler_toolchain_type` toolchain type. - -This rule should be used with an accompanying `toolchain` that binds it and specifies constraints -(See the official documentation for more info on [Bazel Toolchains](https://docs.bazel.build/versions/master/toolchains.html)) - -For example: - -```python -scala_proto_toolchain( - name = "scalapb_toolchain_example", - compiler = ":worker", - compiler_supports_workers = True, - visibility = ["//visibility:public"], -) - -toolchain( - name = "scalapb_toolchain_example_linux", - toolchain = ":scalapb_toolchain_example", - toolchain_type = "@rules_scala_annex//rules/scala_proto:compiler_toolchain_type", - exec_compatible_with = [ - "@bazel_tools//platforms:linux", - "@bazel_tools//platforms:x86_64", - ], - target_compatible_with = [ - "@bazel_tools//platforms:linux", - "@bazel_tools//platforms:x86_64", - ], - visibility = ["//visibility:public"], -) -``` - - -### Attributes - -
name |
-
- Name; required
- - A unique name for this target. - - |
-
compiler |
-
- Label; optional
- - The compiler to use to generate Scala form proto sources - - |
-
compiler_supports_workers |
- - Boolean; optional - | -
-scala_binary(name, config, data, deps, deps_unused_whitelist, deps_used_whitelist, format, javacopts, jvm_flags, main_class, plugins, resource_jars, resource_strip_prefix, resources, runtime_deps, scala, scalacopts, srcs) -- - -Compiles and links a Scala JVM executable. - -Produces the following implicit outputs: - - - `
name |
-
- Name; required
- - A unique name for this target. - - |
-
config |
-
- Label; optional
- - The Scalafmt configuration file. - - |
-
data |
-
- List of labels; optional
- - The additional runtime files needed by this library. - - |
-
deps |
-
- List of labels; optional
- - The JVM library dependencies. - - |
-
deps_unused_whitelist |
-
- List of labels; optional
- - The JVM library dependencies to always consider unused for `scala_deps_direct` checks. - - |
-
deps_used_whitelist |
-
- List of labels; optional
- - The JVM library dependencies to always consider used for `scala_deps_used` checks. - - |
-
format |
- - Boolean; optional - | -
javacopts |
-
- List of strings; optional
- - The Javac options. - - |
-
jvm_flags |
-
- List of strings; optional
- - The JVM runtime flags. - - |
-
main_class |
-
- String; optional
- - The main class. If not provided, it will be inferred by its type signature. - - |
-
plugins |
-
- List of labels; optional
- - The Scalac plugins. - - |
-
resource_jars |
-
- List of labels; optional
- - The JARs to merge into the output JAR. - - |
-
resource_strip_prefix |
-
- String; optional
- - The path prefix to strip from classpath resources. - - |
-
resources |
-
- List of labels; optional
- - The files to include as classpath resources. - - |
-
runtime_deps |
-
- List of labels; optional
- - The JVM runtime-only library dependencies. - - |
-
scala |
-
- Label; optional
- - The `ScalaConfiguration`. Among other things, this specifies which scala version to use. - Defaults to the default_scala target specified in the WORKSPACE file. - - |
-
scalacopts |
-
- List of strings; optional
- - The Scalac options. - - |
-
srcs |
-
- List of labels; optional
- - The source Scala and Java files (and `.srcjar` files of those). - - |
-
-scala_library(name, config, data, deps, deps_unused_whitelist, deps_used_whitelist, exports, format, javacopts, macro, neverlink, plugins, resource_jars, resource_strip_prefix, resources, runtime_deps, scala, scalacopts, srcs) -- -Compiles a Scala JVM library. - -### Attributes - -
name |
-
- Name; required
- - A unique name for this target. - - |
-
config |
-
- Label; optional
- - The Scalafmt configuration file. - - |
-
data |
-
- List of labels; optional
- - The additional runtime files needed by this library. - - |
-
deps |
-
- List of labels; optional
- - The JVM library dependencies. - - |
-
deps_unused_whitelist |
-
- List of labels; optional
- - The JVM library dependencies to always consider unused for `scala_deps_direct` checks. - - |
-
deps_used_whitelist |
-
- List of labels; optional
- - The JVM library dependencies to always consider used for `scala_deps_used` checks. - - |
-
exports |
-
- List of labels; optional
- - The JVM libraries to add as dependencies to any libraries dependent on this one. - - |
-
format |
- - Boolean; optional - | -
javacopts |
-
- List of strings; optional
- - The Javac options. - - |
-
macro |
-
- Boolean; optional
- - Whether this library provides macros. - - |
-
neverlink |
-
- Boolean; optional
- - Whether this library should be excluded at runtime. - - |
-
plugins |
-
- List of labels; optional
- - The Scalac plugins. - - |
-
resource_jars |
-
- List of labels; optional
- - The JARs to merge into the output JAR. - - |
-
resource_strip_prefix |
-
- String; optional
- - The path prefix to strip from classpath resources. - - |
-
resources |
-
- List of labels; optional
- - The files to include as classpath resources. - - |
-
runtime_deps |
-
- List of labels; optional
- - The JVM runtime-only library dependencies. - - |
-
scala |
-
- Label; optional
- - The `ScalaConfiguration`. Among other things, this specifies which scala version to use. - Defaults to the default_scala target specified in the WORKSPACE file. - - |
-
scalacopts |
-
- List of strings; optional
- - The Scalac options. - - |
-
srcs |
-
- List of labels; optional
- - The source Scala and Java files (and `.srcjar` files of those). - - |
-
-scala_test(name, config, data, deps, deps_unused_whitelist, deps_used_whitelist, format, frameworks, isolation, javacopts, jvm_flags, plugins, resource_jars, resource_strip_prefix, resources, runner, runtime_deps, scala, scalacopts, shared_deps, srcs, subprocess_runner) -- - -Compiles and links a collection of Scala tests. - -To buid and run all tests: `bazel test
name |
-
- Name; required
- - A unique name for this target. - - |
-
config |
-
- Label; optional
- - The Scalafmt configuration file. - - |
-
data |
-
- List of labels; optional
- - The additional runtime files needed by this library. - - |
-
deps |
-
- List of labels; optional
- - The JVM library dependencies. - - |
-
deps_unused_whitelist |
-
- List of labels; optional
- - The JVM library dependencies to always consider unused for `scala_deps_direct` checks. - - |
-
deps_used_whitelist |
-
- List of labels; optional
- - The JVM library dependencies to always consider used for `scala_deps_used` checks. - - |
-
format |
- - Boolean; optional - | -
frameworks |
- - List of strings; optional - | -
isolation |
-
- String; optional
- - The isolation level to apply - - |
-
javacopts |
-
- List of strings; optional
- - The Javac options. - - |
-
jvm_flags |
-
- List of strings; optional
- - The JVM runtime flags. - - |
-
plugins |
-
- List of labels; optional
- - The Scalac plugins. - - |
-
resource_jars |
-
- List of labels; optional
- - The JARs to merge into the output JAR. - - |
-
resource_strip_prefix |
-
- String; optional
- - The path prefix to strip from classpath resources. - - |
-
resources |
-
- List of labels; optional
- - The files to include as classpath resources. - - |
-
runner |
- - Label; optional - | -
runtime_deps |
-
- List of labels; optional
- - The JVM runtime-only library dependencies. - - |
-
scala |
-
- Label; optional
- - The `ScalaConfiguration`. Among other things, this specifies which scala version to use. - Defaults to the default_scala target specified in the WORKSPACE file. - - |
-
scalacopts |
- - List of strings; optional - | -
shared_deps |
-
- List of labels; optional
- - If isolation is "classloader", the list of deps to keep loaded between tests - - |
-
srcs |
-
- List of labels; optional
- - The source Scala and Java files (and `.srcjar` files of those). - - |
-
subprocess_runner |
- - Label; optional - | -
-scala_format_test(name, config, srcs) -- - - -### Attributes - -
name |
-
- Name; required
- - A unique name for this target. - - |
-
config |
-
- Label; optional
- - The Scalafmt configuration file. - - |
-
srcs |
-
- List of labels; optional
- - The Scala files. - - |
-