如何管理多个版本的 Scala &我的开发环境中的 SBT? [英] How can I manage multiple versions of Scala & SBT in my dev environment?

查看:33
本文介绍了如何管理多个版本的 Scala &我的开发环境中的 SBT?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚完成了很棒的 Coursera Scala 课程,并渴望通过探索一些现有的开源项目来继续学习更多关于 Scala 的知识.不过,我在尝试让其中一些在本地运行时遇到了障碍.

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 trying to get some of them running locally, though.

我有 Ruby 背景,我们使用 rvmrbenv 等工具在一个系统上管理多个 Ruby 解释器/版本.Scala 用户在处理使用不同版本 Scala/SBT 的项目时采用的方法是什么?

I come from a background in Ruby, where we use tools such as rvm or rbenv to manage multiple Ruby interpreters/versions on one system. What is the approach that Scala users take for working with projects that use different versions of Scala/SBT?

我怀疑我遗漏了一些重要的东西,因为这似乎不是一个受欢迎的问题.

I suspect that I'm missing something big since this doesn't seem to be a popular issue.

请注意,我对 Java 和 JVM 的世界总体上还是很陌生.

Please note that I'm pretty new to the world of Java and the JVM in general.

推荐答案

我建议你看看 paulp 的 优秀的 sbt-extras 脚本.这将使您能够在每个项目的基础上选择要使用的 sbt 版本,而 sbt 将允许您在每个项目的基础上选择您想要的 Scala 版本.

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.

这篇关于如何管理多个版本的 Scala &我的开发环境中的 SBT?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆