Last active
May 22, 2018 21:15
-
-
Save antlypls/ac2917c6c4451ecc2980 to your computer and use it in GitHub Desktop.
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 | |
if [ -z "$1" ] ; then | |
echo 'Project name is empty' | |
exit 1 | |
fi | |
PROJECT_NAME="$1" | |
SCALA_VERSION="${2-2.11.8}" | |
SCALATEST_VERSION="${3-2.2.6}" | |
mkdir $PROJECT_NAME | |
cd $PROJECT_NAME | |
cat > build.sbt << EOF | |
name := "$PROJECT_NAME" | |
scalaVersion := "$SCALA_VERSION" | |
libraryDependencies += "org.scalatest" %% "scalatest" % "$SCALATEST_VERSION" % "test" | |
EOF | |
mkdir -p src/{main/{scala,resources},test/{scala,resources}} | |
cat > .gitignore << EOF | |
target/ | |
EOF |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment