sql - How to configure jooq-sbt-plugin -


i'm relatively new sbt. i'd include jooq-sbt-plugin (github) in sbt config. i'm using build.scala handle multiple projects , i'd include jooq-sbt-plugin config there couldn't figure out put it.

import sbt._ import keys._  object samplebuild extends build {      lazy val = project(id = "all", base = file("."), settings = defaultsettings) aggregate(       one, 2     )      lazy val 1 = project(         id = "one",         base = file("one"),         settings = defaultsettings ++ seq(             librarydependencies ++= dependencies.one         )     )      lazy val 2 = project(         id = "two",         base = file("two"),         settings = defaultsettings ++ seq(             librarydependencies ++= dependencies.two         )     ) dependson (one)      override lazy val settings = super.settings ++ buildsettings      lazy val buildsettings = seq(         organization := "org.sample",         version      := "0.1-snapshot",         scalaversion := "2.10.2"     )      lazy val defaultsettings = defaults.defaultsettings ++ seq(         scalacoptions in compile ++= scalacparams,         externalresolvers in compile := resolvers.commonresolvers,         shellprompt  := shellprompt.buildshellprompt,         resolvers ++= resolvers.commonresolvers     ) }  object resolvers { /* ... */ }  object dependencies { /* ... */ }  object shellprompt { /* ... */ } 

also, i've added following plugins.sbt task jooq:codegen not found when try run it.

// jooq plugin sbt resolvers += "sean8223 releases" @ "https://github.com/sean8223/repository/raw/master/releases"  addsbtplugin("sean8223" %% "jooq-sbt-plugin" % "1.0") 

what i'd run jooq plugin project one. how should add config build.scala? appreciated. in advance!

i don't know plugin, should work:

import sbt._ import keys._ import jooqplugin._  object samplebuild extends build {   lazy val 1 = project(     id = "one",     base = file("one"),     settings = defaultsettings ++ jooqsettings ++ seq(       librarydependencies ++= dependencies.one,       jooqoptions := seq(...)     )   )    .... } 

Comments

Popular posts from this blog

Detect support for Shoutcast ICY MP3 without navigator.userAgent in Firefox? -

web - SVG not rendering properly in Firefox -

java - JavaFX 2 slider labelFormatter not being used -