How can I manage multiple versions of Scala & SBT in my dev environment?

后端 未结 3 947
执笔经年
执笔经年 2021-02-09 02:41

I just finished the awesome Coursera Scala course and am eager to continue learning more about Scala by exploring some existing open source projects. I\'ve hit a snag while tryi

相关标签:
3条回答
  • 2021-02-09 03:15

    I always use the latest sbt from Homebrew (OS X) and then control the Scala version and libraries from within the build.sbt.

    0 讨论(0)
  • 2021-02-09 03:28

    More recently (Dec. 2016), you can try and check out sdkman.io, The Software Development Kit Manager.

    It is a tool for managing parallel versions of multiple Software Development Kits on most Unix based systems. It provides a convenient Command Line Interface (CLI) and API for installing, switching, removing and listing Candidates.

    It installs Software Development Kits for the JVM such as Java, Groovy, Scala, Kotlin and Ceylon. Activator, Ant, Gradle, Grails, Maven, SBT, Spring Boot, Vert.x and many others also supported.

    0 讨论(0)
  • 2021-02-09 03:38

    I suggest you take a look at paulp's excellent sbt-extras script. This will enable you to pick which version of sbt you want to use on a per-project basis, and sbt will allow you to pick which version(s) of Scala you want on a per-project basis.

    0 讨论(0)
提交回复
热议问题