how to add sbteclipse plugin in eclipse

swaheed picture swaheed · Sep 23, 2014 · Viewed 21.9k times · Source

I am using sbt 0.13 and I would like to add sbteclipse plugin so that eclipse import my sbt project and I can write my scala code easily. While searching on the internet I got this link. I read all the instruction that to make plugins.sbt file and added plugin in it but I am confused about what to download and after downloading this zip file what should I do next please.

Any suggestion?

Answer

bmaderbacher picture bmaderbacher · Sep 23, 2014

There is no need to download anything by hand. Just follow the instructions for sbt 0.13 and higher.

Add this to your plugins.sbt

addSbtPlugin("com.typesafe.sbteclipse" % "sbteclipse-plugin" % "5.2.4")

Start the sbt shell and type eclipse.

This automaticly downloads the plugin and creates the eclipse project files for you.

Now you can just import the project via the import project wizard in eclipse.

You can find this instructions at the README file on github: https://github.com/typesafehub/sbteclipse/blob/master/README.md