Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
fupelaqu committed Oct 25, 2013
1 parent b79dad3 commit 75a7704
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,46 @@ sbt-groovy
==========

an sbt plugin for groovy

## Requirements

* [SBT 0.13+](http://www.scala-sbt.org/)


## Quick start

Add plugin to *project/plugins.sbt*:

```scala

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

addSbtPlugin("com.ebiznext.sbt.plugins" % "sbt-groovy" % "0.1.1")
```

For *.sbt* build definitions, inject the plugin settings in *build.sbt*:

```scala
seq(groovy.settings :_*)

seq(testGroovy.settings :_*)
```

For *.scala* build definitions, inject the plugin settings in *Build.scala*:

```scala
Project(..., settings = Project.defaultSettings ++ com.ebiznext.sbt.plugins.GroovyPlugin.groovy.settings ++ com.ebiznext.sbt.plugins.GroovyPlugin.testGroovy.settings)
```

## Configuration

Plugin keys are located in `com.ebiznext.sbt.plugins.Keys`

### Groovy sources

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

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

0 comments on commit 75a7704

Please sign in to comment.