Skip to content

Commit f8670ff

Browse files
committed
separate Scala 3 and 2, and make 3 most prominent
1 parent a696d5c commit f8670ff

File tree

1 file changed

+35
-19
lines changed

1 file changed

+35
-19
lines changed

_overviews/jdk-compatibility/overview.md

Lines changed: 35 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,46 @@ title: JDK Compatibility
44
permalink: /overviews/jdk-compatibility/overview.html
55
---
66

7-
Scala's primary platform is the Java Virtual Machine (JVM). (Other supported platforms: [Scala.js](https://www.scala-js.org/), [Scala Native](https://scala-native.org/).)
7+
Scala's primary platform is the Java Virtual Machine (JVM). Other supported platforms are [Scala.js](https://www.scala-js.org/) and [Scala Native](https://scala-native.org/).
88

99
Sometimes new JVM and JDK (Java Development Kit) versions require us to update Scala to remain compatible.
1010

11-
## Scala compatibility table
11+
## Scala 3 compatibility
1212

13-
Minimum Scala versions:
13+
At present, both Scala 3.3 LTS and Scala 3.7 still support JDK 8 and above.
1414

15-
| JDK | 3.8* | 3.4+ | 3.3 LTS | 2.13 | 2.12 |
16-
|:-----------:|:------:|:--------:|:--------:|:---------:|:---------:|
17-
| 25 (LTS) | 3.8.0* | 3.7.1 | 3.3.6 | 2.13.17 | 2.12.21* |
18-
| 21 (LTS) | 3.8.0* | 3.4.0 | 3.3.1 | 2.13.11 | 2.12.18 |
19-
| 17 (LTS) | 3.8.0* | 3.4.0 | 3.3.0 | 2.13.6 | 2.12.15 |
20-
| 11 (LTS) | | 3.4.0 | 3.3.0 | 2.13.0 | 2.12.4 |
21-
| 8 (LTS) | | 3.4.0 | 3.3.0 | 2.13.0 | 2.12.0 |
15+
As per [this blog post](https://www.scala-lang.org/news/next-scala-lts-jdk.html),
16+
Scala 3.8 will have a new minimum JDK version of 17.
17+
18+
The next Scala 3 LTS release will be Scala 3.9.
19+
20+
Minimum Scala 3 versions for each JDK:
21+
22+
| JDK | 3.8* | 3.4+ | 3.3 LTS |
23+
|:-----------:|:------:|:--------:|:--------:|
24+
| 25 (LTS) | 3.8.0* | 3.7.1 | 3.3.6 |
25+
| 21 (LTS) | 3.8.0* | 3.4.0 | 3.3.1 |
26+
| 17 (LTS) | 3.8.0* | 3.4.0 | 3.3.0 |
27+
| 11 (LTS) | | 3.4.0 | 3.3.0 |
28+
| 8 (LTS) | | 3.4.0 | 3.3.0 |
29+
30+
\* = forthcoming; support available in [nightly builds](https://docs.scala-lang.org/overviews/core/nightlies.html)
31+
32+
Even when a version combination isn't listed as supported, most features might still work.
33+
34+
Using the latest patch version of your chosen Scala version line is always recommended.
35+
36+
## Scala 2 compatibility
37+
38+
Minimum Scala 2 versions for each JDK:
39+
40+
| JDK | 2.13 | 2.12 |
41+
|:-----------:|:---------:|:---------:|
42+
| 25 (LTS) | 2.13.17 | 2.12.21* |
43+
| 21 (LTS) | 2.13.11 | 2.12.18 |
44+
| 17 (LTS) | 2.13.6 | 2.12.15 |
45+
| 11 (LTS) | 2.13.0 | 2.12.4 |
46+
| 8 (LTS) | 2.13.0 | 2.12.0 |
2247

2348
\* = forthcoming; support available in [nightly builds](https://docs.scala-lang.org/overviews/core/nightlies.html)
2449

@@ -143,12 +168,3 @@ A few sbt plugins are offering support for GraalVM Native Image compilation:
143168

144169
- [sbt-native-packager](https://www.scala-sbt.org/sbt-native-packager/formats/graalvm-native-image.html)
145170
- [sbt-native-image](https://github.com/scalameta/sbt-native-image)
146-
147-
## Scala 3
148-
149-
At present, both Scala 3.3 LTS and Scala Next support JDK 8, as well as 11 and beyond.
150-
151-
As per [this blog post](https://www.scala-lang.org/news/next-scala-lts-jdk.html),
152-
Scala 3.8 will have a new minimum JDK version of 17. This can already be tested in Scala 3.8 nightlies.
153-
154-
The next Scala 3 LTS release will be Scala 3.9.

0 commit comments

Comments
 (0)