Skip to content

Instantly share code, notes, and snippets.

@kai-chi
Created May 10, 2019 07:53
Show Gist options
  • Save kai-chi/c85b37efd72404ed7c5559c90b7f3f0d to your computer and use it in GitHub Desktop.
Save kai-chi/c85b37efd72404ed7c5559c90b7f3f0d to your computer and use it in GitHub Desktop.
create a simple sbt project without reduntant hello-worlds
#!/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