Reputation: 6218
I am new to sbt and I am trying to create a new project using sbt eclipse plugin.
I have gone through similar post on SO but it didn't help.
build.sbt in project directory
name := "myproject"
version := "1.0"
scalaVersion := "2.10.1"
libraryDependencies += "org.scalatest" %% "scalatest" % "1.9.1" % "test"
EclipseKeys.createSrc := EclipseCreateSrc.Default + EclipseCreateSrc.ManagedClasses
plugins.sbt global
resolvers += Classpaths.typesafeResolver
addSbtPlugin("com.typesafe.sbteclipse" % "sbteclipse-plugin" % "4.0.0")
I run sbt eclipse from command prompt. It creates the project which I can import in Eclipse but it does not create src folders. What am I doing wrong?
Upvotes: 2
Views: 474
Reputation: 1636
Use SBT Plugin 3.0.0 in Version 4.0.0 the src folders are not create.
addSbtPlugin("com.typesafe.sbteclipse" % "sbteclipse-plugin" % "3.0.0")
Upvotes: 1