- Integration with your GitHub repo and account.
- Release section in generated
build.sbt
complies with Sonatype policies for Maven Central Syncing. - sbt-assembly plugin integrated, for the creation of a single executable jar of your project.
- Informative
README.md
automatically generated. - Reasonable
scalac
andjavac
options chosen. - Optional settings provided commented out in generated
build.sbt
. - Cross-compilation for all Scala versions 2.8.0 and higher.
- Install giter8 (g8).
- Get the g8 template and run it:
$ g8 ymasory/sbt
$ cd <name-of-app>
$ chmod u+x sbt
$ ./sbt
> +run
- Install sbt, version 0.12.0 or higher.
- Fork ymasory/sbt.g8 on GitHub to your account. Let's assume your account is "foo".
- Clone it.
$ git clone [email protected]:foo/sbt.g8.git
- Now make your desired changes.
- Do a local deploy of your modified template and try it out.
$ cd sbt.g8
$ rm -rf target
$ sbt
> g8-test # must result in SUCCESS
> exit
$ cd target/sbt-test/default-*/scripted
$ java -jar target/*-assembly-*.jar # must print "hello sbt.g8"
- If you like your new template, push it to GitHub.
$ cd sbt.g8
$ git push
- You can now access your modified template using g8.
$ cd
$ g8 foo/sbt
- If you'd like to share your changes, send a pull request.