Is there a way to install the version of Scala used in the ammonite script?

Is there any way to install the version of Scala used in the Ammonite script?

I just started using Ammonite and at first blushing seems to be far superior to the runner scalasscript that I have used so far. However, with scalasI can easily install the version of Scala used in the script. For instance.

#!/usr/bin/env scalas

/***
scalaVersion := "2.11.8"
*/

I cannot find links to any such ad in the Ammonite documentation.

+4
source share
1 answer

When the question was originally submitted, it was not possible with Ammonite to specify the version of Scala that you wanted to use. At that time, the Scala version was tightly tied to 2.12.1.

- Scala, Ammonite script, scalas. , . , Scala 2.12 Ammonite. Scala 2.11 Scala 2.10, .

http://www.lihaoyi.com/Ammonite/#OlderScalaVersions

+4

Source: https://habr.com/ru/post/1663678/


All Articles