Seems that the support isn’t there yet on Scala 2 (probably situation is similar on Dotty):
- https://github.com/scala/scala-dev/issues/139
- https://docs.scala-lang.org/overviews/jdk-compatibility/overview.html
- https://github.com/sbt/sbt/issues/3368
OTOH you don’t need to enable modules to use JDK 9+ features. Here I’ve shown how to use OpenJFX 14 on OpenJDK 11 with SBT and no JPMS (Jigsaw) setup: Scala, JDK 11 and JPMS
Is there any need to switch to modules when migrating past Java 8? No. Mark Reinhold on July 17, 2020