Skip to content

Commit

Permalink
Register scalca test toolchain
Browse files Browse the repository at this point in the history
  • Loading branch information
meteorcloudy committed Dec 13, 2024
1 parent 59f9043 commit e63f7d9
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 6 deletions.
14 changes: 14 additions & 0 deletions BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
#
################################################################################
#
load("@io_bazel_rules_scala//scala:scala.bzl", "setup_scala_testing_toolchain")
load("@bazel_gazelle//:def.bzl", "gazelle")
load("@python_versions//3.11:defs.bzl", "compile_pip_requirements")

Expand All @@ -31,3 +32,16 @@ compile_pip_requirements(
requirements_in = "requirements.in",
requirements_txt = "requirements_lock.txt",
)

setup_scala_testing_toolchain(
name = "scalatest_toolchain",
scalatest_classpath = [
"@maven//:org_scalactic_scalactic_2_13",
"@maven//:org_scalatest_scalatest_2_13",
"@maven//:org_scalatest_scalatest_compatible",
"@maven//:org_scalatest_scalatest_core_2_13",
"@maven//:org_scalatest_scalatest_flatspec_2_13",
"@maven//:org_scalatest_scalatest_matchers_core_2_13",
"@maven//:org_scalatest_scalatest_mustmatchers_2_13",
],
)
7 changes: 1 addition & 6 deletions MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,7 @@ use_repo(pip, "rules_webtesting_py_deps")

##### Scala dependencies #####

register_toolchains(
# "@io_bazel_rules_scala//scala:unused_dependency_checker_error_toolchain",
# "@io_bazel_rules_scala//test/proto:scalapb_toolchain",
"@io_bazel_rules_scala//test/toolchains:java21_toolchain_definition",
dev_dependency = True,
)
register_toolchains('//:scalatest_toolchain')

##### Browsers dependencies #####
browser_repositories = use_extension("//web/versioned:browsers-0.3.3.bzl", "browser_repositories_extension")
Expand Down

0 comments on commit e63f7d9

Please sign in to comment.