/sbt-groovy

an sbt plugin for groovy

Primary LanguageScalaMIT LicenseMIT

sbt-groovy

an sbt plugin for groovy

Requirements

Quick start

Add plugin to project/plugins.sbt:

resolvers += "Sonatype Repository" at "https://oss.sonatype.org/content/groups/public"

addSbtPlugin("org.softnetwork.sbt.plugins" % "sbt-groovy" % "0.1.3")

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 ++ org.softnetwork.sbt.plugins.GroovyPlugin.groovy.settings ++ org.softnetwork.sbt.plugins.GroovyPlugin.testGroovy.settings)

Configuration

Plugin keys are located in org.softnetwork.sbt.plugins.Keys

Groovy sources

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

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