Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ScalaBuffPlugin is not a member of sbt.TaskKey[Seq[java.io.File]] #16

Open
prayagupa opened this issue Mar 17, 2014 · 7 comments
Open

Comments

@prayagupa
Copy link

With following configuration,

build.sbt

import scalabuff.ScalaBuffPlugin._


object build extends Build {
   lazy val root = Project("main", file("."), settings = Defaults.defaultSettings ++ scalabuffSettings).configs(ScalaBuff)
}

project/plugins.sbt

//sbt-scalabuff
addSbtPlugin("com.github.sbt" %% "sbt-scalabuff" % "0.2")

I am getting following 'not a member of sbt.TaskKey' error :

$ ./sbt 
[info] Loading project definition from /home/prayagupd/hacker_/moonmarket-sbt/project
/home/prayagupd/hacker_/moonmarket-sbt/build.sbt:2: error: value ScalaBuffPlugin is not a member of sbt.TaskKey[Seq[java.io.File]]
import scalabuff.ScalaBuffPlugin._
                 ^
@prayagupa prayagupa changed the title ScalaBuffPlugin is not a member of sbt.TaskKey ScalaBuffPlugin is not a member of sbt.TaskKey[Seq[java.io.File]] Mar 17, 2014
@jilen
Copy link

jilen commented Apr 11, 2014

That should be placed in project/Build.scala

@pathikrit
Copy link

@jilen: What do you mean by "that"??? Are you referring to @iPrayag's build.sbt snippet or plugins.sbt??

@jilen
Copy link

jilen commented May 29, 2014

@pathikrit

import scalabuff.ScalaBuffPlugin._


object build extends Build {
   lazy val root = Project("main", file("."), settings = Defaults.defaultSettings ++ scalabuffSettings).configs(ScalaBuff)
}

I mean this

@pathikrit
Copy link

I did this and I am still getting same error. I am using Play 2.2.3 with sbt 0.13.2 and this is a snippet from my Build.scala:

lazy val mainProject = Project(
    id="main",
    base=file("."),
    settings = (Project.defaultSettings ++ Seq(
      migrate <<= merlin2GandalfTask,
      slick <<= slickCodeGenTask,
      sourceGenerators in Compile <+= slickCodeGenTask // register automatic code generation on every compile, remove for only manual use
    ) ++ scalabuffSettings)
  ).dependsOn(dbGen, merlin2Gandalf, ScalaBuff)

@jilen
Copy link

jilen commented May 30, 2014

@pathikrit
Copy link

What sbt version do you use?

@jilen
Copy link

jilen commented May 31, 2014

@pathikrit 0.13.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants