diff options
author | Johannes Rudolph <johannes.rudolph@gmail.com> | 2016-03-01 14:29:56 +0100 |
---|---|---|
committer | Johannes Rudolph <johannes.rudolph@gmail.com> | 2016-03-01 14:29:56 +0100 |
commit | 11b21a1042dd4bb5007ff3e7eaf18b5e7dbdf8dd (patch) | |
tree | 4be31196b4b1ede766c3069ef0e374b9ef4f7037 /README.md | |
parent | 6ccb744c22c767df71b74cccc19fef31fb790e7c (diff) | |
download | sbt-boilerplate-11b21a1042dd4bb5007ff3e7eaf18b5e7dbdf8dd.tar.gz sbt-boilerplate-11b21a1042dd4bb5007ff3e7eaf18b5e7dbdf8dd.tar.bz2 sbt-boilerplate-11b21a1042dd4bb5007ff3e7eaf18b5e7dbdf8dd.zip |
make this an AutoPlugin, fixes #19
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 13 |
1 files changed, 6 insertions, 7 deletions
@@ -78,13 +78,13 @@ This now expands correctly to Put - addSbtPlugin("io.spray" % "sbt-boilerplate" % "0.5.9") + addSbtPlugin("io.spray" % "sbt-boilerplate" % "0.6.0") -into your `plugins.sbt` and add +into your `plugins.sbt`. sbt-boilerplate is an `AutoPlugin` which needs to be enabled using - Boilerplate.settings - -to your `build.sbt`. +```scala +enablePlugins(spray.boilerplate.BoilerplatePlugin) +``` The templates have to be put into the `src/main/boilerplate` directory and the file name must end with `.template`. The generated files will be put into the same hierarchy as they @@ -93,8 +93,7 @@ filename has no extension ".scala" is added automatically. ## Known issues - * The maximum number of arguments, 22, is hard-coded. - * Instances for 0 arguments have to be supplied manually. + * Instances for zero arguments have to be supplied manually. ## Projects using sbt-boilerplate |