Skip to content

Commit

Permalink
Fix managed dependency on Play's sbt plugin
Browse files Browse the repository at this point in the history
The repository organization pattern for sbt plugins seems to be
different from the usual patterns for dependencies. The sbt-plugin
artefact for Play needs to be added as a dependency here, not a plugin,
though, so the resource is specified explicitly.
  • Loading branch information
knuton committed Mar 16, 2012
1 parent 60261b3 commit 927bf90
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions build.sbt
Expand Up @@ -8,13 +8,14 @@ organization := "learnyousome"

description := "SBT plugin for handling stylus assets in Play"

resolvers += "Typesafe releases" at "http://repo.typesafe.com/typesafe/releases/"
/// Dependencies

//libraryDependencies += "play" %% "sbt-plugin" % "2.0"
libraryDependencies ++= Seq(
"play" %% "play" % "2.0",
"play" % "sbt-plugin" % "2.0" from "http://repo.typesafe.com/typesafe/releases/play/sbt-plugin/scala_2.9.1/sbt_0.11.2/2.0/jars/sbt-plugin.jar"
)

libraryDependencies += "play" %% "play" % "2.0"

// Publishing
/// Publishing

publishTo <<= (version) { version: String =>
Some(Resolver.file("learnyousome-repo", file("../m2repo")))
Expand Down

0 comments on commit 927bf90

Please sign in to comment.