Skip to content

Instantly share code, notes, and snippets.

@jarek-przygodzki
Last active July 12, 2016 18:32
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 jarek-przygodzki/ce8e8777df8a72b8e07ef3fd173563c1 to your computer and use it in GitHub Desktop.
Save jarek-przygodzki/ce8e8777df8a72b8e07ef3fd173563c1 to your computer and use it in GitHub Desktop.
Minimal Play! Application
#!/bin/bash
APP_NAME=$1
if [[ -z $APP_NAME ]]
then
me=`basename "$0"`
echo "App name is required. Use $me <app-name>"
exit 1
fi
mkdir $APP_NAME
cd $APP_NAME
echo "Boostraping Play app in `pwd`"
cat << EOF > build.sbt
name := """$APP_NAME"""
version := "1.0-SNAPSHOT"
lazy val root = (project in file(".")).enablePlugins(PlayScala)
scalaVersion := "2.11.7"
resolvers += "scalaz-bintray" at "http://dl.bintray.com/scalaz/releases"
EOF
mkdir project
cat << EOF > project/plugins.sbt
// The Play plugin
addSbtPlugin("com.typesafe.play" % "sbt-plugin" % "2.5.4")
EOF
cat << EOF > project/build.properties
sbt.version=0.13.11
EOF
mkdir conf
touch conf/application.conf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment