Skip to content

Commit 6ca2c3d

Browse files
andreaTPb-studios
authored andcommitted
Add graalvm AOT notes
1 parent 6e3dff2 commit 6ca2c3d

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

_overviews/jdk-compatibility/overview.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,16 @@ JDK 17 prereleases are already available. The final release is [targeted](https:
8989

9090
The Scala community build doesn't run on JDK 17 yet. We will add it once 17 is closer to release.
9191

92+
## GraalVM Native Image compatibility notes
93+
94+
There are several records of successfully using Scala with [GraalVM](https://www.graalvm.org) Native Image(i.e.: ahead of time compiler) to produce directly executable binaries.
95+
Beware that, even using solely the Scala standard library, Native Image compilation have some heavy requirements in terms of [reflective access](https://www.graalvm.org/reference-manual/native-image/Reflection/), and it very likely require additional configuration steps to be performed.
96+
97+
A few sbt plugins are offering support for GraalVM Native Image compilation:
98+
99+
- [sbt-native-packager](https://www.scala-sbt.org/sbt-native-packager/formats/graalvm-native-image.html)
100+
- [sbt-native-image](https://github.com/scalameta/sbt-native-image)
101+
92102
## Scala 3
93103

94104
The Scala 3.0.x series supports JDK 8, as well as 11 and beyond.

0 commit comments

Comments
 (0)