Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a pip / easy_install for Scala? [closed]

Tags:

I want to organize my Scala packages and love how Python solves this issue with pip.

Can you recommend a similar tool for the management of Scala packages?

EDIT: I am looking for an easy installation of new packages with all it's dependencies like

 >>> pip install <a_package> # installs a_package with all dependencies. 
like image 911
Jon Avatar asked Nov 13 '13 19:11

Jon


Video Answer


1 Answers

The most directly similar is probably Scala Build Tool. Specifically, Library Dependencies. The Java ecosystem includes many libraries and build tools, Scala is built on Java. So you gain the ability to leverage things like -

  • Maven
  • Gradle
  • Scala Build Tool

Further, because everything is run inside a virtual machine; there is no "system" level install. You can start with your CLASSPATH and for more investigate class loading.

#!/bin/sh # From http://www.scalaclass.com/node/10 - CLASSPATH L=`dirname $0`/../lib cp=`echo $L/*.jar|sed 's/ /:/g'` exec scala -classpath "$cp" "$0" "$@" !# import com.my.Goodness val goodness = new Goodness world.hello 
like image 57
Elliott Frisch Avatar answered Oct 07 '22 15:10

Elliott Frisch