np - new sbt project generation made simple(r)
As pointed out in the comments by @0__ below, there's another project that aims at simplifying how new projects in sbt are created - np. That seems exactly what you needed.
In https://github.com/softprops/np#for-sbt-013 there's a complete description of what's needed to set it up and create new sbt projects using the utility that boils down to:
-
Registering the sbt plugin. Add the following to
~/.sbt/0.13/plugins/np.sbt
.addSbtPlugin("me.lessis" % "np" % "0.2.0")
-
Define a custom global overrides in
~/.sbt/0.13/np.sbt
. Add the following to the file.seq(npSettings:_*) (NpKeys.defaults in (Compile, NpKeys.np)) ~= { _.copy(org="me.lessis", version="0.1.0-SNAPSHOT") }
-
Use the np plugin's command -
np
. Create an empty directory for the sbt project and runsbt np
.jacek:~/sandbox/stackoverflow $ mkdir np-sandbox/ jacek:~/sandbox/stackoverflow $ cd np-sandbox/ jacek:~/sandbox/stackoverflow/np-sandbox $ sbt np [info] Loading global plugins from /Users/jacek/.sbt/0.13/plugins [info] Set current project to np-sandbox (in build file:/Users/jacek/sandbox/stackoverflow/np-sandbox/) [info] Generated build file [info] Generated source directories [success] Total time: 0 s, completed Dec 7, 2013 12:51:42 PM jacek:~/sandbox/stackoverflow/np-sandbox $ tree . ├── build.sbt ├── src │ ├── main │ │ ├── resources │ │ └── scala │ └── test │ ├── resources │ └── scala └── target └── streams └── compile └── np └── $global └── out 12 directories, 2 files jacek:~/sandbox/stackoverflow/np-sandbox $ cat build.sbt organization := "me.lessis" name := "default" version := "0.1.0-SN