Skip to content

Instantly share code, notes, and snippets.

@luchoching
Created July 19, 2016 10:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save luchoching/7aa988f221d38b3a65f05cfc3a4e6417 to your computer and use it in GitHub Desktop.
Save luchoching/7aa988f221d38b3a65f05cfc3a4e6417 to your computer and use it in GitHub Desktop.
Create a new sbt project layout
_sbtnew(){
mkdir -p $1/project
cd $1
echo 'sbt.version = 0.13.11' > project/build.properties
cat << _EOF_ > build.sbt
name := "$1"
version := "1.0"
scalaVersion := "2.11.8"
_EOF_
mkdir -p src/main/scala
mkdir -p src/test/scala
}
alias sbtnew=_sbtnew
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment