Scala: Difference between revisions
(Created page with "=== Installation === Start with [http://www.scala-sbt.org/download.html sbt]: echo "deb https://dl.bintray.com/sbt/debian /" | sudo tee -a /etc/apt/sources.list.d/sbt.list s...") |
No edit summary |
||
Line 5: | Line 5: | ||
sudo apt-get update | sudo apt-get update | ||
sudo apt-get install sbt | sudo apt-get install sbt | ||
Next, set up ~/.sbt/repositories with repos used by your team; eg, for Causam: | |||
[repositories] | |||
local | |||
artifactory-releases: http://artifactory.energynet.link:8081/artifactory/libs-release/ | |||
artifactory-snapshots: http://artifactory.energynet.link:8081/artifactory/libs-snapshot/ | |||
ivy-releases: http://artifactory.energynet.link:8081/artifactory/ivy-releases, [organization]/[module]/(scala_[scalaVersion]/)(sbt_[sbtVersion]/)[revision]/[type]s/[artifact](-[classifier]).[ext] | |||
anormcypher: http://artifactory.energynet.link:8081/artifactory/anormcypher | |||
Then if you have a project already, use sbt and let that pull down all the dependencies: | Then if you have a project already, use sbt and let that pull down all the dependencies: | ||
cd ~/development/causam/git/causam-north-poller-scala | cd ~/development/causam/git/causam-north-poller-scala | ||
sbt compile | sbt compile |
Revision as of 19:16, 13 June 2016
Installation
Start with sbt:
echo "deb https://dl.bintray.com/sbt/debian /" | sudo tee -a /etc/apt/sources.list.d/sbt.list sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 2EE0EA64E40A89B84B2DF73499E82A75642AC823 sudo apt-get update sudo apt-get install sbt
Next, set up ~/.sbt/repositories with repos used by your team; eg, for Causam:
[repositories] local artifactory-releases: http://artifactory.energynet.link:8081/artifactory/libs-release/ artifactory-snapshots: http://artifactory.energynet.link:8081/artifactory/libs-snapshot/ ivy-releases: http://artifactory.energynet.link:8081/artifactory/ivy-releases, [organization]/[module]/(scala_[scalaVersion]/)(sbt_[sbtVersion]/)[revision]/[type]s/[artifact](-[classifier]).[ext] anormcypher: http://artifactory.energynet.link:8081/artifactory/anormcypher
Then if you have a project already, use sbt and let that pull down all the dependencies:
cd ~/development/causam/git/causam-north-poller-scala sbt compile