Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions scala/support/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,17 @@ scala_library(
name = "test_reporter",
srcs = ["JUnitXmlReporter.scala"],
scalacopts = {
"3.3": [
"-deprecation:true",
"-encoding",
"UTF-8",
"-feature",
"-language:existentials",
"-language:higherKinds",
"-language:implicitConversions",
"-unchecked",
"-Xfatal-warnings",
],
"3.2": [
"-deprecation:true",
"-encoding",
Expand Down
5 changes: 5 additions & 0 deletions test/shell/test_examples.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,13 @@ function scala3_2_example() {
(cd examples/scala3; bazel build --repo_env=SCALA_VERSION=3.2.1 //...)
}

function scala3_3_example() {
(cd examples/scala3; bazel build --repo_env=SCALA_VERSION=3.3.0 //...)
}

$runner scalatest_repositories_example
$runner specs2_junit_repositories_example
$runner multi_framework_toolchain_example
$runner scala3_1_example
$runner scala3_2_example
$runner scala3_3_example
7 changes: 7 additions & 0 deletions third_party/repositories/repositories.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ load(
_artifacts_3_2 = "artifacts",
_scala_version_3_2 = "scala_version",
)
load(
"//third_party/repositories:scala_3_3.bzl",
_artifacts_3_3 = "artifacts",
_scala_version_3_3 = "scala_version",
)
load(
"@io_bazel_rules_scala//scala:scala_cross_version.bzl",
"default_maven_server_urls",
Expand All @@ -39,6 +44,7 @@ artifacts_by_major_scala_version = {
"2.13": _artifacts_2_13,
"3.1": _artifacts_3_1,
"3.2": _artifacts_3_2,
"3.3": _artifacts_3_3,
}

scala_version_by_major_scala_version = {
Expand All @@ -47,6 +53,7 @@ scala_version_by_major_scala_version = {
"2.13": _scala_version_2_13,
"3.1": _scala_version_3_1,
"3.2": _scala_version_3_2,
"3.3": _scala_version_3_3,
}

def repositories(
Expand Down
Loading