Created
March 26, 2016 15:37
-
-
Save codepr/5a4ecf5578a80b37531a to your computer and use it in GitHub Desktop.
Shell script to init a directory for a scala sbt project
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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