Skip to content

Commit 487c2fa

Browse files
Update latest Scala 2 and Scala 3 versions (#1636)
* Update latest Scala 2 and Scala 3 versions * Update changed versions used in tests * Fix failing Scala 3 diagnostics tests after upgrade to 3.3.4 - this version backported propositions for missing identifiers
1 parent cf40df3 commit 487c2fa

28 files changed

+112
-97
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ scalatest_toolchain()
8888
```
8989

9090
This will load the `rules_scala` repository at the commit sha
91-
`rules_scala_version` into your Bazel project and register a [scala_toolchain](docs/scala_toolchain.md) at the default Scala version (2.12.19)
91+
`rules_scala_version` into your Bazel project and register a [scala_toolchain](docs/scala_toolchain.md) at the default Scala version (2.12.20)
9292

9393
Then in your BUILD file just add the following so the rules will be available:
9494
```starlark
@@ -143,13 +143,13 @@ Previous minor versions may work but are supported only on a best effort basis.
143143
To configure Scala version you must call `scala_config(scala_version = "2.xx.xx")` and configure
144144
dependencies by declaring [scala_toolchain](docs/scala_toolchain.md).
145145
For a quick start you can use `scala_repositories()` and `scala_register_toolchains()`, which have
146-
dependency providers configured for `2.11.12`, `2.12.19` and `2.13.14` versions.
146+
dependency providers configured for `2.11.12`, `2.12.20` and `2.13.15` versions.
147147

148148

149149
```starlark
150150
# WORKSPACE
151151
load("@io_bazel_rules_scala//:scala_config.bzl", "scala_config")
152-
scala_config(scala_version = "2.13.14")
152+
scala_config(scala_version = "2.13.15")
153153

154154
load("@rules_proto//proto:repositories.bzl", "rules_proto_dependencies", "rules_proto_toolchains")
155155
rules_proto_dependencies()

dt_patches/dt_patch_test.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ run_test_local test_compiler_patch 2.12.16
102102
run_test_local test_compiler_patch 2.12.17
103103
run_test_local test_compiler_patch 2.12.18
104104
run_test_local test_compiler_patch 2.12.19
105+
run_test_local test_compiler_patch 2.12.20
105106

106107
run_test_local test_compiler_patch 2.13.0
107108
run_test_local test_compiler_patch 2.13.1
@@ -116,6 +117,7 @@ run_test_local test_compiler_patch 2.13.10
116117
run_test_local test_compiler_patch 2.13.11
117118
run_test_local test_compiler_patch 2.13.12
118119
run_test_local test_compiler_patch 2.13.14
120+
run_test_local test_compiler_patch 2.13.15
119121

120122
run_test_local test_compiler_srcjar_error 2.12.11
121123
run_test_local test_compiler_srcjar_error 2.12.12
@@ -129,7 +131,9 @@ run_test_local test_compiler_srcjar 2.12.16
129131
run_test_local test_compiler_srcjar_nonhermetic 2.12.17
130132
run_test_local test_compiler_srcjar_nonhermetic 2.12.18
131133
run_test_local test_compiler_srcjar_nonhermetic 2.12.19
134+
run_test_local test_compiler_srcjar_nonhermetic 2.12.20
132135

133136
run_test_local test_compiler_srcjar_nonhermetic 2.13.11
134137
run_test_local test_compiler_srcjar_nonhermetic 2.13.12
135-
run_test_local test_compiler_srcjar_nonhermetic 2.13.14
138+
run_test_local test_compiler_srcjar_nonhermetic 2.13.14
139+
run_test_local test_compiler_srcjar_nonhermetic 2.13.15

dt_patches/test_dt_patches_user_srcjar/WORKSPACE

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,9 @@ srcjars_by_version = {
105105
"2.12.19": {
106106
"url": "https://repo1.maven.org/maven2/org/scala-lang/scala-compiler/2.12.19/scala-compiler-2.12.19-sources.jar?foo",
107107
},
108+
"2.12.20": {
109+
"url": "https://repo1.maven.org/maven2/org/scala-lang/scala-compiler/2.12.20/scala-compiler-2.12.20-sources.jar?foo",
110+
},
108111
"2.13.11": {
109112
"url": "https://repo1.maven.org/maven2/org/scala-lang/scala-compiler/2.13.11/scala-compiler-2.13.11-sources.jar?foo",
110113
},
@@ -114,6 +117,9 @@ srcjars_by_version = {
114117
"2.13.14": {
115118
"url": "https://repo1.maven.org/maven2/org/scala-lang/scala-compiler/2.13.14/scala-compiler-2.13.14-sources.jar?foo",
116119
},
120+
"2.13.15": {
121+
"url": "https://repo1.maven.org/maven2/org/scala-lang/scala-compiler/2.13.15/scala-compiler-2.13.15-sources.jar?foo",
122+
},
117123
}
118124

119125
rules_scala_setup(scala_compiler_srcjar = srcjars_by_version[SCALA_VERSION])

examples/crossbuild/1_single/BUILD

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ scala_library(
1414
scala_test(
1515
name = "test213",
1616
srcs = ["test.scala"],
17-
scala_version = "2.13.14",
17+
scala_version = "2.13.15",
1818
)
1919

2020
# This one will be compiled by 3.3 compiler (the default one):

examples/crossbuild/2_deps/BUILD

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ scala_binary(
1919
name = "bin213",
2020
srcs = ["bin.scala"], # compiled with 2.13 (as per `scala_version`)
2121
main_class = "C",
22-
scala_version = "2.13.14",
22+
scala_version = "2.13.15",
2323
deps = [
2424
":lib", # compiled 2.13 (as per `scala_version`)
2525
":lib211", # compiled with 2.11 (that target overrides version)

examples/crossbuild/3_select/BUILD

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,14 @@ scala_binary(
2222
name = "bin2",
2323
srcs = ["bin.scala"],
2424
main_class = "B",
25-
scala_version = "2.13.14",
25+
scala_version = "2.13.15",
2626
deps = [":lib"],
2727
)
2828

2929
scala_binary(
3030
name = "bin3",
3131
srcs = ["bin.scala"],
3232
main_class = "B",
33-
scala_version = "3.3.3",
33+
scala_version = "3.3.4",
3434
deps = [":lib"],
3535
)

examples/crossbuild/WORKSPACE

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,11 @@ local_repository(
3030
load("@io_bazel_rules_scala//:scala_config.bzl", "scala_config")
3131

3232
scala_config(
33-
scala_version = "3.3.3",
33+
scala_version = "3.3.4",
3434
scala_versions = [
3535
"2.11.12",
36-
"2.13.14",
37-
"3.3.3",
36+
"2.13.15",
37+
"3.3.4",
3838
],
3939
)
4040

examples/scala3/WORKSPACE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ local_repository(
2929

3030
load("@io_bazel_rules_scala//:scala_config.bzl", "scala_config")
3131

32-
scala_config(scala_version = "3.5.0")
32+
scala_config(scala_version = "3.5.2")
3333

3434
load(
3535
"@io_bazel_rules_scala//scala:scala.bzl",

examples/semanticdb/WORKSPACE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ local_repository(
3232

3333
load("@io_bazel_rules_scala//:scala_config.bzl", "scala_config")
3434

35-
scala_config(scala_version = "2.13.14")
35+
scala_config(scala_version = "2.13.15")
3636

3737
load(
3838
"@io_bazel_rules_scala//scala:scala.bzl",

scala_config.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ load("//scala:scala_cross_version.bzl", "extract_major_version", "extract_minor_
22

33
def _default_scala_version():
44
"""return the scala version for use in maven coordinates"""
5-
return "2.12.19"
5+
return "2.12.20"
66

77
def _validate_supported_scala_version(scala_major_version, scala_minor_version):
88
if scala_major_version == "2.11" and int(scala_minor_version) != 12:

0 commit comments

Comments
 (0)