esamson / sbt-groovy   0.2.0-beta4

MIT License GitHub

an sbt plugin for groovy

Scala versions: 2.12
sbt plugins: 1.x

sbt-groovy

An sbt plugin for groovy forked from fupelaqu/sbt-groovy

Requirements

Quick start

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)

Configuration

Plugin keys are located in ph.samson.sbt.groovy.Keys

Groovy sources

groovySource in Compile := (sourceDirectory in Compile).value / "groovy"

groovySource in Test := (sourceDirectory in Test).value / "groovy"