undefined_variable
undefined_variable

Reputation: 6218

Unable to create src folder in sbteclipse

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

Answers (1)

VIJ
VIJ

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

Related Questions