skinny-framework/skinny-framework — pull request #216 by seratch (2014-12-18 14:46:25+00:00)
Title: Fix Play2 friendly tasks #213

skinny-task for Play Framework users.

### build.sbt

```scala
lazy val task = (project in file("task")).settings(
scalaSource in Compile := baseDirectory.value,
libraryDependencies ++= Seq(
"org.skinny-framework" %% "skinny-task" % skinnyVersion,
"org.skinny-framework" %% "skinny-orm" % skinnyVersion,
"com.h2database" % "h2" % "1.4.183"
),
mainClass := Some("TaskRunnner")
)
```

### task/TaskRunner.scala

```scala
import skinny.task._, generator._
object TaskRunner extends SkinnyTaskLauncher {
register("model", (params) => PlayModelGenerator.run(params))
register("reverse-model", (params) => PlayReverseModelGenerator.run(params))
register("reverse-model-all", (params) => PlayReverseModelAllGenerator.run(params))
}
```