An sbt plugin for groovy forked from fupelaqu/sbt-groovy
Add plugin to project/plugins.sbt:
addSbtPlugin("ph.samson" % "sbt-groovy" % "0.2.0")
For .sbt build definitions, inject the plugin settings in build.sbt:
seq(groovy.settings :_*)
seq(testGroovy.settings :_*)
For .scala build definitions, inject the plugin settings in Build.scala:
Project(..., settings = Project.defaultSettings ++ ph.samson.sbt.groovy.GroovyPlugin.groovy.settings ++ ph.samson.sbt.groovy.GroovyPlugin.testGroovy.settings)
Plugin keys are located in ph.samson.sbt.groovy.Keys
groovySource in Compile := (sourceDirectory in Compile).value / "groovy"
groovySource in Test := (sourceDirectory in Test).value / "groovy"