Scala-native how to use 3.7.0?

Scala 3.7 released last week. I want to create scala-native project using this version of scala. The docs are old, the sbt new scala-native/scala-native.g8 command produces a scala 3.3.3 version, and when I change that value in the build.sbt to 3.7.0 and do sbt run I get

 Note: Unresolved dependencies path:
[error] sbt.librarymanagement.ResolveException: Error downloading org.scala-native:scala3lib_native0.5_3:3.7.0+0.5.1
[error]   Not found
[error]   Not found
[error]   not found: /Users/john/.ivy2/local/org.scala-native/scala3lib_native0.5_3/3.7.0+0.5.1/ivys/ivy.xml

Is it possible yet to use Scala 3.7 in native?

The error mentions Scala Native 0.5.3, maybe try updating it to 0.5.7? It should be in plugins.sbt I think.

EDIT: Yep, just tried it, I can confirm 3.7.0 and 0.5.7 work together.

2 Likes

https://mvnrepository.com/artifact/org.scala-native/scala3lib_native0.5_3/3.7.0+0.5.7

1 Like