sbt / sbt-boilerplate

sbt plugin for generating scala.Tuple/Function related boilerplate code
BSD 2-Clause "Simplified" License
109 stars 19 forks source link

Updating to sbt 1.x, error: not found: value spray #28

Closed dylemma closed 5 years ago

dylemma commented 5 years ago

I'm in the process of updating the sbt build for my project from 0.13.x to 1.x, and I'm at a loss while trying to get Boilerplate to be recognized by sbt. As per your instructions, I've added the following to my plugins.sbt and build.sbt

// plugins.sbt
addSbtPlugin("io.spray" % "sbt-boilerplate" % "0.6.1")
// build.sbt
lazy val core = (project in file("core"))
    .enablePlugins(spray.boilerplate.BoilerplatePlugin)
    ...
// build.properties
sbt.version = 1.2.3 // I also tried 1.0.0

I'm met with build.sbt:17: error: not found: value spray I get similar errors if I try to import spray.boilerplate.BoilerplatePlugin or just .enablePlugins(BoilerplatePlugin)

I'm sure I'm missing something important, but haven't had any success with my searches.

dylemma commented 5 years ago

Ah, It turned out my build.sbt file was in /project after being renamed from Build.scala, when it should have been moved up a directory. Don't mind me :)