Skip to content

Commit

Permalink
Add support for Scala 3.3 LTS (#1501)
Browse files Browse the repository at this point in the history
* Add support for Scala 3.3 LTS
  • Loading branch information
csubj authored Jun 16, 2023
1 parent d6b81c8 commit 12d60d2
Show file tree
Hide file tree
Showing 4 changed files with 555 additions and 0 deletions.
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

0 comments on commit 12d60d2

Please sign in to comment.