Skip to content

dataich/scalaenv

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

82 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

scalaenv

Build Status

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

Do you need sbt and Play Framework version management?
Please refer to sbtenv in the case of use sbt, and playenv in the case of use Play Framework.

Installation

Basic GitHub Checkout

  1. git clone scalaenv into ~/.scalaenv.

    $ git clone git://github.com/mazgi/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 Mac OSX

As an alternative to installation via GitHub checkout, you can install scalaenv using the Homebrew package manager on Mac OSX.

$ brew update
$ brew install scalaenv

Version History

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.

About

Groom your app’s Scala environment

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 94.9%
  • Roff 5.1%