开源软件名称:scalaenv/scalaenv
开源软件地址:https://github.com/scalaenv/scalaenv
开源编程语言:
Shell
92.8%
开源软件介绍:scalaenv
Groom your app's Scala environment with scalaenv like rbenv :)
Support offered for all official versions, including dotty and scala3.
Do you need sbt version management?
Please refer to sbtenv in the case of use sbt.
Installation
Basic GitHub Checkout
-
git clone scalaenv into ~/.scalaenv .
$ git clone git://github.com/scalaenv/scalaenv.git ~/.scalaenv
-
Add ~/.scalaenv/bin to your $PATH for access to the scalaenv command.
$ echo 'export PATH="${HOME}/.scalaenv/bin:${PATH}"' >> ~/.zshrc
-
Add scalaenv init to your shell to enable shims and autocompletion.
$ echo 'eval "$(scalaenv init -)"' >> ~/.zshrc
Bash note: Modify your ~/.bash_profile file instead of ~/.zshrc .
-
Restart your shell so that PATH changes take effect. (Opening a new
terminal tab will usually do it.) Now check if scalaenv was set up:
$ type scalaenv
#=> "scalaenv is a shell function"
Same as in previous step, use ~/.bash_profile for Bash.
-
Install each version of scala.
$ scalaenv install scala-2.13.4
If show all available version, please use the following command:
$ scalaenv install -l
All available versions:
scala-2.13.1
scala-2.13.2
scala-2.13.3
scala-2.13.4
...
If want to install manually, please download scala archive and extract into ~/.scalaenv/versions/ .
$ curl -LO http://www.scala-lang.org/files/archive/scala-2.13.4.tgz
$ tar xf scala-2.13.4.tgz -C ~/.scalaenv/versions/
Homebrew on macOS
As an alternative to installation via GitHub checkout, you can install scalaenv using the Homebrew package manager on macOS.
$ brew update
$ brew install scalaenv
Or, if you would like to install the latest development release:
$ brew install --HEAD scalaenv
To upgrade HEAD package use --fetch-HEAD option:
$ brew upgrade --fetch-HEAD scalaenv
Version History
0.1.14 (May, 29, 2021)
- Added version 2.12.14
- diff
0.1.13 (May, 17, 2021)
- Added version 2.13.6
- diff
0.1.12 (May, 13, 2021)
0.1.11 (Apr, 27, 2021)
- Added version 3.0.0-RC3
- diff
0.1.10 (Apr, 1, 2021)
- Added version 3.0.0-RC2
- diff
0.1.9 (Feb, 23, 2021)
- Added version 2.13.5 and 3.0.0-RC1
- diff
0.1.8 (Feb, 12, 2021)
- Fix urls for 2.7.0 and 2.7.1
- diff
0.1.7 (Feb, 2, 2021)
- Added version 2.10.0
- diff
0.1.6 (Jan, 24, 2021)
- Added version 2.12.13
- diff
0.1.5 (Jan, 6, 2021)
- Added many new archives, including dotty and scala3
- diff
0.1.4 (June, 18, 2019)
- Added new archive (2.13.0)
- diff
0.1.3 (Mar, 26, 2019)
- Added new archives (2.12.7, 2.12.8, 2.13.0-RC1)
- Fix the bug in
scalaenv install -l
- diff
0.1.2 (Sep, 10, 2018)
- fix
scalaenv install -l
- diff
0.1.1 (Sep 9, 2018)
0.1.0 (Nov 12, 2017)
- Added
scala-2.10.7 and scala-2.11.12
- diff
0.0.16 (Oct 21, 2017)
0.0.15 (Aug 17, 2017)
- Implemented
scalaenv uninstall
- Enhanced
scalaenv install
- Added usage for
scalaenv install
- Added completions for
scalaenv install
- etc...
- Added new scala archives (2.12.3 and 2.13.0-M2)
- diff
0.0.14 (Jul 28, 2017)
- Added dotty-0.2.0-RC1
- Supported for fish shell
|
请发表评论