Skip to content

Instantly share code, notes, and snippets.

@moccos
Last active August 29, 2015 14:26
Show Gist options
  • Save moccos/844f7274f445c04ad45e to your computer and use it in GitHub Desktop.
Save moccos/844f7274f445c04ad45e to your computer and use it in GitHub Desktop.
lazy val codeGenTask2 = TaskKey[Unit]("hoge", "description")
codeGenTask2 := {
import scalikejdbc.mapper.SbtKeys._
scalikejdbcCodeGeneratorAll.in(Compile).value.apply(scalikejdbcJDBCSettings.in(Compile).value, scalikejdbcGeneratorSettings.in(Compile).value).foreach { g =>
g.writeModel()
// g.writeSpec(g.specAll())
}
}
compile in Compile <<= (compile in Compile).dependsOn(codeGenTask2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment