Skip to content

Instantly share code, notes, and snippets.

@codepr
Created March 26, 2016 15:37
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 codepr/5a4ecf5578a80b37531a to your computer and use it in GitHub Desktop.
Save codepr/5a4ecf5578a80b37531a to your computer and use it in GitHub Desktop.
Shell script to init a directory for a scala sbt project
#!/bin/bash
project_name="MyProject"
if [ $# -gt 0 ]; then
project_name="$1"
fi
mkdir -p src/{main,test}/{java,resources,scala}
mkdir lib project target
# create build.sbt
echo "name := \""$project_name"\"
version := \"1.0\"
scalaVersion := \"2.11.8\"
libraryDependencies +=
\"com.typesafe.akka\" %% \"akka-actor\" % \"2.4.2\"" > build.sbt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment