I am relatively new to SBT. I would like to include jooq-sbt-plugin ( GitHub ) in my SBT configuration. I use Build.scala to handle several projects, and I would like to include the jooq-sbt-plugin configuration there, but I could not figure out where to put it.
import sbt._ import Keys._ object SampleBuild extends Build { lazy val all = Project(id = "all", base = file("."), settings = defaultSettings) aggregate( one, two ) lazy val one = Project( id = "one", base = file("one"), settings = defaultSettings ++ Seq( libraryDependencies ++= Dependencies.one ) ) lazy val two = 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 { /* ... */ }
In addition, I added the following to plugins.sbt , but the jooq:codegen not found when I try to start it.
// JOOQ plugin for SBT resolvers += "sean8223 Releases" at "https://github.com/sean8223/repository/raw/master/releases" addSbtPlugin("sean8223" %% "jooq-sbt-plugin" % "1.0")
I would like to run the jOOQ plugin with the one project. How to add this configuration to my build.scala assembly? Help is much appreciated. Thanks in advance!
source share