An sbt plug-in which compiles Planout4j yaml files to Planout language files.
Add the plugin to your sbt build.
addSbtPlugin("me.rschatz" % "sbt-planout4j" % "0.0.2")
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-*/resource_managed/main/planout
. The output location can be
changed by overwriting the planoutOutputFolder
Setting in your build, i.e.
planoutOutputFolder := new File("/tmp/out")