Skip to content

Instantly share code, notes, and snippets.

@oreillyross
Created July 13, 2015 11:14
Show Gist options
  • Save oreillyross/f1e2dc36f273e7d91049 to your computer and use it in GitHub Desktop.
Save oreillyross/f1e2dc36f273e7d91049 to your computer and use it in GitHub Desktop.
SBT uses the same directory structure as Maven, and for simple needs, you can generate a compatible structure using a shell script. For example, the following Unix shell script creates the initial set of files and directories you’ll want for most projects
#!/bin/sh
mkdir -p src/{main,test}/{java,resources,scala}
mkdir lib project target
# create an initial build.sbt file
echo 'name := "MyProject"
version := "1.0"
scalaVersion := "2.10.0"' > build.sbt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment