Skip to content

Instantly share code, notes, and snippets.

@ansrivas
Created May 26, 2015 11:04
Show Gist options
  • Save ansrivas/c5c3c12935f82fefa2dd to your computer and use it in GitHub Desktop.
Save ansrivas/c5c3c12935f82fefa2dd to your computer and use it in GitHub Desktop.
Creating sbt eclipse project
//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