reikje / sbt-planout4j

SBT plug-in which compiles planout4j yaml files

GitHub

sbt-planout4j

A SBT plug-in which compiles Planout4j yaml files to Planout language files.

Installation

Add the plugin to your SBT build.

addSbtPlugin("me.rschatz" % "sbt-planout4j" % "0.0.1")

Usage

Put your Planout4j namespace yaml files in src/main/planout4j. The location can be altered by overwriting the planout4jYamlSourceFolder Setting in your build, i.e.

planout4jYamlSourceFolder := new File("/tmp/in") 

The plugin will add a Resource Generator to the build and Planout language files (json) will be generated as part of the managedResources Task in target/scala-2.10/resource_managed/main/planout. The output location can be changed by overwriting the planoutOutputFolder Setting in your build, i.e.

planout4jYamlSourceFolder := new File("/tmp/out")