Skip to content
Groom your app’s Scala environment
Shell Roff
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin I sincerely respect rbenv. Jan 27, 2014
completions Update scalaenv.bash Aug 22, 2017
libexec #55 can't execute on fish-shell (#56) May 21, 2018
plugins/scala-install Add scala-2.13.0 Jun 18, 2019
test #55 can't execute on fish-shell (#56) May 21, 2018
.gitignore
.travis.yml Setup for Travis CI. Mar 13, 2014
LICENSE Initial commit Jan 26, 2014
README.md update release notes Jun 19, 2019

README.md

scalaenv

Build Status

Groom your app's Scala environment with scalaenv like rbenv :)

Do you need sbt version management? Please refer to sbtenv in the case of use sbt.

Installation

Basic GitHub Checkout

  1. git clone scalaenv into ~/.scalaenv.

    $ git clone git://github.com/scalaenv/scalaenv.git ~/.scalaenv
  2. Add ~/.scalaenv/bin to your $PATH for access to the scalaenv command.

    $ echo 'export PATH="${HOME}/.scalaenv/bin:${PATH}"' >> ~/.zshrc
  3. 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.

  4. 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.

  5. Install each version of scala.

    $ scalaenv install scala-2.10.3

    If show all available version, please use the following command:

    $ scalaenv install -l
    All available versions:
      scala-2.10.1
      scala-2.10.2
      scala-2.10.3
      ...

    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.10.3.tgz
    $ tar xf scala-2.10.3.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.4 (June, 18, 2019)

  • Added new archive (2.13.0)

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

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

0.0.16 (Oct 21, 2017)

  • Added scala-2.12.4

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)

0.0.14 (Jul 28, 2017)

0.0.13 (Jun 25, 2017)

  • dotty support 🎉
    scalaenv install dotty-0.1.2-RC1
    scalaenv global dotty-0.1.2-RC1-bin-SNAPSHOT
    scalaenv rehash
    dotr

0.0.12 (Apr 24, 2017)

  • Added Scala 2.11.9 - Scala 2.11.11 , Scala 2.12.2 - Scala 2.13.0-M1. Thanks to @Kaioru..

0.0.11 (Feb 03, 2017)

  • Added Scala 2.12.1. Thanks to @3tty0n.

0.0.10 (Dec 05, 2016)

  • Added Scala 2.11.8, Scala 2.12.0-M4 - 2.12.0. Thanks to @odd, @3tty0n

0.0.9 (Jan 06, 2016)

  • Added Scala 2.12.0-M3 and more Scala 2.10 versions. Thanks to @joprice

0.0.8 (Aug 25, 2015)

  • Added Scala 2.11.5 - Scala 2.11.7, Scala 2.12.0-M1 - 2.12.0-M2 Many thanks to @alexanderscott, @tdstein, @rwinzhang

0.0.7 (Nov 19, 2014)

  • Added recipes for Scala 2.11.1 - Scala 2.11.4 by @zaneli
  • Fixed a bug when run versions subcommand.

0.0.6 (Apr 18, 2014)

  • Added recipes for Scala 2.11.0 to scala-install built-in plugin.

0.0.5 (Apr 16, 2014)

  • Added recipes for Scala 2.10.4 and Scala 2.11.0-RCx to scala-install built-in plugin.
  • Added recipes for old versions to scala-install built-in plugin.

0.0.4 (Mar 25, 2014)

  • Improved installation instruction by scala-install built-in plugin.

0.0.3 (Mar 14, 2014)

  • Added Travis CI status badge on README.
  • Fixed a bug when run rehash subcommand.
  • Fixed version string.

0.0.2 (Mar 04, 2014)

  • Added completions for Z shell and Bash.

0.0.1 (Jan 28, 2014)

  • Initial public release.
You can’t perform that action at this time.