Created
May 10, 2019 07:53
-
-
Save kai-chi/c85b37efd72404ed7c5559c90b7f3f0d to your computer and use it in GitHub Desktop.
create a simple sbt project without reduntant hello-worlds
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 | |
SCALA_VERSION=2.12.8 | |
SBT_VERSION=1.2.8 | |
read -p "Name of the Scala project? " project_name | |
mkdir -p $project_name/src/{main,test}/{resources,scala} | |
mkdir -p $project_name/{project,target} | |
echo "sbt.version=$SBT_VERSION" > $project_name/project/build.properties | |
echo "name := \"$project_name\" | |
version := \"0.1-SNAPSHOT\" | |
scalaVersion := \"$SCALA_VERSION\"" > $project_name/build.sbt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment