Forked from wendelicious/gist:3408bc199c9342522f53
Last active
August 29, 2015 14:13
-
-
Save vivin/c4ffb3dc9b7d5fbb5ba3 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/sh | |
PANCAKES_VERSION=1.1.6.10 | |
if [ -z $1 ]; then | |
echo "Usage: $0 ARTIFACT_NAME" >&2 | |
exit 1 | |
fi | |
artifact=$1 | |
if [ -e $1 ]; then | |
echo "Folder exists. It's a trap! Remove folder $artifact" >&2 | |
exit 2 | |
fi | |
echo Create the template Gradle project using a Maven Archetype ... | |
mvn archetype:generate -DarchetypeVersion=$PANCAKES_VERSION -DarchetypeGroupId=com.infusionsoft.pancakes -D archetypeArtifactId=infusionsoft-spring-boot-maven-archetype-web-service -Dversion=0.2-UNUSED -DartifactId=$artifact | |
echo Initialize local Git repository ... | |
cd $artifact | |
chmod 755 gradlew | |
rm pom.xml | |
git init . | |
git add . | |
git commit -m "$1: Template Pancake Application" | |
./gradlew idea | |
echo Build and run your new service ... | |
./gradlew build bootRun | |
# Or for you kids out there who love many ways to do the same thing | |
# ./gradlew clean build | |
# java -jar build/lib/$artifact-0.0.1-BATTER.war |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment