Created
May 26, 2015 11:04
-
-
Save ansrivas/c5c3c12935f82fefa2dd to your computer and use it in GitHub Desktop.
Creating sbt eclipse project
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//To create a scala eclipse project | |
//Open and write into this file | |
mkdir -p ~/.sbt/0.13/plugins/ | |
vim ~/.sbt/0.13/plugins/plugins.sbt | |
addSbtPlugin("com.typesafe.sbteclipse" % "sbteclipse-plugin" % "3.0.0") | |
//now create a sample directory where you want your project to be | |
$ mkdir testproject | |
$ cd testproject | |
$ sbt | |
//you are in sbt console now | |
> eclipse | |
Thus a project will be created which can be imported into eclipse. | |
Also whenever you add a new dependency in build.sbt, just execute "sbt eclipse" in the testproject directory. | |
All the jars will be referenced from there. | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment