Skip to content

Commit 12d60d2

Browse files
authored
Add support for Scala 3.3 LTS (#1501)
* Add support for Scala 3.3 LTS
1 parent d6b81c8 commit 12d60d2

File tree

4 files changed

+555
-0
lines changed

4 files changed

+555
-0
lines changed

scala/support/BUILD

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,17 @@ scala_library(
55
name = "test_reporter",
66
srcs = ["JUnitXmlReporter.scala"],
77
scalacopts = {
8+
"3.3": [
9+
"-deprecation:true",
10+
"-encoding",
11+
"UTF-8",
12+
"-feature",
13+
"-language:existentials",
14+
"-language:higherKinds",
15+
"-language:implicitConversions",
16+
"-unchecked",
17+
"-Xfatal-warnings",
18+
],
819
"3.2": [
920
"-deprecation:true",
1021
"-encoding",

test/shell/test_examples.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,13 @@ function scala3_2_example() {
2424
(cd examples/scala3; bazel build --repo_env=SCALA_VERSION=3.2.1 //...)
2525
}
2626

27+
function scala3_3_example() {
28+
(cd examples/scala3; bazel build --repo_env=SCALA_VERSION=3.3.0 //...)
29+
}
30+
2731
$runner scalatest_repositories_example
2832
$runner specs2_junit_repositories_example
2933
$runner multi_framework_toolchain_example
3034
$runner scala3_1_example
3135
$runner scala3_2_example
36+
$runner scala3_3_example

third_party/repositories/repositories.bzl

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@ load(
2323
_artifacts_3_2 = "artifacts",
2424
_scala_version_3_2 = "scala_version",
2525
)
26+
load(
27+
"//third_party/repositories:scala_3_3.bzl",
28+
_artifacts_3_3 = "artifacts",
29+
_scala_version_3_3 = "scala_version",
30+
)
2631
load(
2732
"@io_bazel_rules_scala//scala:scala_cross_version.bzl",
2833
"default_maven_server_urls",
@@ -39,6 +44,7 @@ artifacts_by_major_scala_version = {
3944
"2.13": _artifacts_2_13,
4045
"3.1": _artifacts_3_1,
4146
"3.2": _artifacts_3_2,
47+
"3.3": _artifacts_3_3,
4248
}
4349

4450
scala_version_by_major_scala_version = {
@@ -47,6 +53,7 @@ scala_version_by_major_scala_version = {
4753
"2.13": _scala_version_2_13,
4854
"3.1": _scala_version_3_1,
4955
"3.2": _scala_version_3_2,
56+
"3.3": _scala_version_3_3,
5057
}
5158

5259
def repositories(

0 commit comments

Comments
 (0)