Skip to content
This repository has been archived by the owner on Aug 19, 2020. It is now read-only.

Add spring-boot sample #743

Closed
wants to merge 37 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
049d0c4
Add issue and PR templates
bamboo Jul 27, 2017
9d8e3e3
Update public Kotlin Slack link
bamboo Aug 19, 2017
a8273d2
Update wrappers to Gradle 4.2
eskatos Sep 21, 2017
201534f
Merge pull request #501 from gradle/eskatos/release/gradle-4.2
bamboo Sep 21, 2017
36f3d47
Merge tag 'v0.12.1' into eskatos/release-gradle-4.3-rc-2
eskatos Oct 18, 2017
e94faf5
Update wrappers to Gradle 4.3-RC2
eskatos Oct 18, 2017
9e32275
Fix implicit imports tests after upstream default imports unification
eskatos Oct 12, 2017
6a3c51a
Merge v0.12.1 on `master` and use Gradle 4.3-RC2
eskatos Oct 18, 2017
966d490
Bump version number
bamboo Oct 23, 2017
436a721
Don't execute plugins block of non top level scripts
bamboo Oct 23, 2017
8d29c4a
Update wrappers to latest snapshot distro
bamboo Oct 24, 2017
7c2d996
Fix `ImplicitImportsTest` after distro upgrade
bamboo Oct 24, 2017
a67a979
Update wrappers to Gradle 4.3-RC3
eskatos Oct 24, 2017
f149878
Merge branch 'bamboo/v0.12.2' into eskatos/release/v0.12.2
eskatos Oct 24, 2017
f5d09f7
Merge pull request #573 from gradle/eskatos/release/gradle-4.3-rc3
bamboo Oct 24, 2017
24673dd
Bump version number {0.12.2 => 0.12.3}
bamboo Oct 25, 2017
46e5e6b
Account for PropertyState deprecation in favor of Property
eskatos Oct 17, 2017
2cb47e9
Update wrappers to Gradle 4.3 RC4
bamboo Oct 27, 2017
4577472
Add 0.12.2 release notes
bamboo Oct 24, 2017
4d8ee31
Add 0.12.3 release notes
bamboo Oct 27, 2017
d4a7ec8
Update wrappers to Gradle 4.3
bamboo Oct 30, 2017
47274df
Merge branch 'master' into bamboo/master/v0.12.3
bamboo Oct 30, 2017
0164aa4
Merge v0.12.3 on `master` and use Gradle 4.3 GA
eskatos Oct 31, 2017
70755fc
Replace CLA with DCO
pioterj Dec 4, 2017
68064fb
Remove mention of CLA
pioterj Dec 4, 2017
164294a
Move the information about DCO up
pioterj Dec 4, 2017
e6b9463
Replace CLA with DCO
pioterj Dec 4, 2017
2a91d86
Merge v0.13.1 into master and upgrade wrappers to Gradle 4.4
bamboo Dec 12, 2017
99d67fc
Merge pull request #628 from gradle/bamboo/master/v0.13.1
bamboo Dec 13, 2017
4719d5c
Remove `settings.gradle.kts` limitation from README
bamboo Dec 22, 2017
a5de7d1
Fix typo in PR template
bamboo Jan 4, 2018
3716ab5
Merge tag 'v0.14.2' into eskatos/master/gradle-4.5.1
eskatos Feb 20, 2018
4d4b767
Update wrappers to 4.5.1
eskatos Feb 20, 2018
d265c29
Fix version information in android sample readme
eskatos Feb 20, 2018
5c4702b
Let master use Gradle 4.5.1 and Gradle Kotlin DSL 0.14.2
eskatos Feb 21, 2018
1625567
Do not require a sign-off from org members
eskatos Feb 14, 2018
38e8ff1
Add spring-boot sample application
ramsrib Mar 5, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,9 @@ Please consider reading [How to Write a Git Commit Message](http://chris.beams.i
* Keep commits discrete: avoid including multiple unrelated changes in a single commit
* Keep commits self-contained: avoid spreading a single change across multiple commits. A single commit should make sense in isolation
* If your commit pertains to a GitHub issue, include (`See #123`) in the commit message on a separate line
* Please check that your email address matches that on your [CLA](http://gradle.org/cla)
* [Sign off](https://git-scm.com/docs/git-commit#git-commit---signoff) your Git commits to indicate that you agree to the terms of [Developer Certificate of Origin](https://developercertificate.org/).

### Submitting Your Change
Before we can accept any code contributions, you must complete and electronically sign a [Gradle CLA](http://gradle.org/cla).

All code contributions should be submitted via a [pull request](https://help.github.com/articles/using-pull-requests) from a [forked GitHub repository](https://help.github.com/articles/fork-a-repo).

Expand Down
2 changes: 1 addition & 1 deletion .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

### Contributor Checklist
- [ ] Base the PR against the `develop` branch
- [ ] [Sign Gradle CLA](http://gradle.org/contributor-license-agreement/)
- [ ] Make sure that all commits are [signed off](https://git-scm.com/docs/git-commit#git-commit---signoff) to indicate that you agree to the terms of [Developer Certificate of Origin](https://developercertificate.org/).
- [ ] Provide integration tests to verify changes from a user perspective
- [ ] Provide unit tests to verify logic
- [ ] Ensure that tests pass locally: `./gradlew check --parallel`
3 changes: 3 additions & 0 deletions .github/dco.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Disable sign-off chcecking for members of the Gradle GitHub organization
require:
members: false
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://repo.gradle.org/gradle/dist-snapshots/gradle-kotlin-dsl-4.5-20171208130525+0000-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-4.5.1-all.zip
1 change: 1 addition & 0 deletions samples/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ The Gradle projects in this directory demonstrate typical use cases with and fea
- [`hello-js`](./hello-js): demonstrates a Kotlin-based Gradle build script for a project that is itself written in Kotlin and targets JavaScript
- [`hello-kotlin`](./hello-kotlin): demonstrates a Kotlin-based Gradle build script for a project that is itself written in Kotlin
- [`hello-world`](./hello-world): demonstrates plugin application and configuration, dependency management, JUnit testing
- [`hello-spring-boot`](./hello-spring-boot): demonstrates a Kotlin-based Gradle build script for a Kotlin-based spring boot application
- [`kotlin-friendly-groovy-plugin`](./kotlin-friendly-groovy-plugin): demonstrates a Groovy Gradle plugin and its use from Kotlin-based build scripts
- [`maven-plugin`](./maven-plugin): demonstrates how to configure the Gradle `maven` plugin
- [`maven-publish`](./maven-publish): demonstrates how to configure the Gradle `maven-publish` plugin
Expand Down
2 changes: 1 addition & 1 deletion samples/ant/gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://repo.gradle.org/gradle/dist-snapshots/gradle-kotlin-dsl-4.5-20171208130525+0000-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-4.5.1-all.zip
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://repo.gradle.org/gradle/dist-snapshots/gradle-kotlin-dsl-4.5-20171208130525+0000-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-4.5.1-all.zip
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://repo.gradle.org/gradle/dist-snapshots/gradle-kotlin-dsl-4.5-20171208130525+0000-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-4.5.1-all.zip
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://repo.gradle.org/gradle/dist-snapshots/gradle-kotlin-dsl-4.5-20171208130525+0000-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-4.5.1-all.zip
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://repo.gradle.org/gradle/dist-snapshots/gradle-kotlin-dsl-4.5-20171208130525+0000-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-4.5.1-all.zip
2 changes: 1 addition & 1 deletion samples/copy/gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://repo.gradle.org/gradle/dist-snapshots/gradle-kotlin-dsl-4.5-20171208130525+0000-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-4.5.1-all.zip
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://repo.gradle.org/gradle/dist-snapshots/gradle-kotlin-dsl-4.5-20171208130525+0000-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-4.5.1-all.zip
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://repo.gradle.org/gradle/dist-snapshots/gradle-kotlin-dsl-4.5-20171208130525+0000-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-4.5.1-all.zip
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://repo.gradle.org/gradle/dist-snapshots/gradle-kotlin-dsl-4.5-20171208130525+0000-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-4.5.1-all.zip
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://repo.gradle.org/gradle/dist-snapshots/gradle-kotlin-dsl-4.5-20171208130525+0000-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-4.5.1-all.zip
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://repo.gradle.org/gradle/dist-snapshots/gradle-kotlin-dsl-4.5-20171208130525+0000-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-4.5.1-all.zip
8 changes: 3 additions & 5 deletions samples/hello-android/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,9 @@ Hello, Android!

This sample demonstrates a simple Android application with a Kotlin based build script.

It has been tested against _Android Studio 2.3_<sup>[*](#android-studio-build)</sup> with the latest Kotlin plugin
from the update channel _Early Access Preview 1.1.x_.
It has been tested against _Android Studio 3.0.1_ with the latest Kotlin plugin
from the update channel _Early Access Preview 1.2.x_.

Simply import the Gradle project by pointing to the `setting.gradle` file.
Simply import the Gradle project by pointing to this directory.

You might need to update your _Android Support Repository_ to include the latest versions of _ConstraintLayout for Android_ and _Solver for ConstraintLayout_ as described in [this document](https://developer.android.com/training/constraint-layout/index.html#add-constraintlayout-to-your-project).

<a name="android-studio-build">*</a> _Android Studio (build #AI-162.3764568 built on February 24, 2017)_
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://repo.gradle.org/gradle/dist-snapshots/gradle-kotlin-dsl-4.5-20171208130525+0000-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-4.5.1-all.zip
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://repo.gradle.org/gradle/dist-snapshots/gradle-kotlin-dsl-4.5-20171208130525+0000-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-4.5.1-all.zip
2 changes: 1 addition & 1 deletion samples/hello-js/gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://repo.gradle.org/gradle/dist-snapshots/gradle-kotlin-dsl-4.5-20171208130525+0000-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-4.5.1-all.zip
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://repo.gradle.org/gradle/dist-snapshots/gradle-kotlin-dsl-4.5-20171208130525+0000-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-4.5.1-all.zip
6 changes: 6 additions & 0 deletions samples/hello-spring-boot/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
build/
out/
classes/
.idea/
*.iml
.gradle/
4 changes: 4 additions & 0 deletions samples/hello-spring-boot/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Hello, Spring Boot!
===================

This sample demonstrates a simple spring-boot application with a Kotlin based build script.
39 changes: 39 additions & 0 deletions samples/hello-spring-boot/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile

group = "com.spring.boot"
version = "1.0.0-SNAPSHOT"

plugins {
val kotlinVersion = "1.2.21"
id("org.springframework.boot") version "2.0.0.RELEASE"
id("org.jetbrains.kotlin.jvm") version kotlinVersion
id("org.jetbrains.kotlin.plugin.spring") version kotlinVersion
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could be replaced with kotlin("plugin.spring") version kotlinVersion
(same for jvm of course)

id("io.spring.dependency-management") version "1.0.4.RELEASE"
}

tasks.withType<KotlinCompile> {
kotlinOptions {
jvmTarget = "1.8"
freeCompilerArgs = listOf("-Xjsr305=strict")
}
}

val test by tasks.getting(Test::class) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could be also (tasks.findByName("test") as Test).useJUnitPlatform().
From my point of view it looks better... But don't know 🤷‍♂️

useJUnitPlatform()
}

repositories {
mavenCentral()
}

dependencies {
compile("org.springframework.boot:spring-boot-starter-web")
compile("org.jetbrains.kotlin:kotlin-stdlib-jdk8")
compile("org.jetbrains.kotlin:kotlin-reflect")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can here use kotlin() as well:

compile(kotlin("stdlib-jdk8"))
compile(kotlin("reflect"))

compile("com.fasterxml.jackson.module:jackson-module-kotlin")
testCompile("org.springframework.boot:spring-boot-starter-test") {
exclude(module = "junit")
}
testImplementation("org.junit.jupiter:junit-jupiter-api")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine")
}
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-4.6-bin.zip
172 changes: 172 additions & 0 deletions samples/hello-spring-boot/gradlew
Original file line number Diff line number Diff line change
@@ -0,0 +1,172 @@
#!/usr/bin/env sh

##############################################################################
##
## Gradle start up script for UN*X
##
##############################################################################

# Attempt to set APP_HOME
# Resolve links: $0 may be a link
PRG="$0"
# Need this for relative symlinks.
while [ -h "$PRG" ] ; do
ls=`ls -ld "$PRG"`
link=`expr "$ls" : '.*-> \(.*\)$'`
if expr "$link" : '/.*' > /dev/null; then
PRG="$link"
else
PRG=`dirname "$PRG"`"/$link"
fi
done
SAVED="`pwd`"
cd "`dirname \"$PRG\"`/" >/dev/null
APP_HOME="`pwd -P`"
cd "$SAVED" >/dev/null

APP_NAME="Gradle"
APP_BASE_NAME=`basename "$0"`

# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
DEFAULT_JVM_OPTS=""

# Use the maximum available, or set MAX_FD != -1 to use that value.
MAX_FD="maximum"

warn () {
echo "$*"
}

die () {
echo
echo "$*"
echo
exit 1
}

# OS specific support (must be 'true' or 'false').
cygwin=false
msys=false
darwin=false
nonstop=false
case "`uname`" in
CYGWIN* )
cygwin=true
;;
Darwin* )
darwin=true
;;
MINGW* )
msys=true
;;
NONSTOP* )
nonstop=true
;;
esac

CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar

# Determine the Java command to use to start the JVM.
if [ -n "$JAVA_HOME" ] ; then
if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
# IBM's JDK on AIX uses strange locations for the executables
JAVACMD="$JAVA_HOME/jre/sh/java"
else
JAVACMD="$JAVA_HOME/bin/java"
fi
if [ ! -x "$JAVACMD" ] ; then
die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
Please set the JAVA_HOME variable in your environment to match the
location of your Java installation."
fi
else
JAVACMD="java"
which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
Please set the JAVA_HOME variable in your environment to match the
location of your Java installation."
fi

# Increase the maximum file descriptors if we can.
if [ "$cygwin" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then
MAX_FD_LIMIT=`ulimit -H -n`
if [ $? -eq 0 ] ; then
if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
MAX_FD="$MAX_FD_LIMIT"
fi
ulimit -n $MAX_FD
if [ $? -ne 0 ] ; then
warn "Could not set maximum file descriptor limit: $MAX_FD"
fi
else
warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT"
fi
fi

# For Darwin, add options to specify how the application appears in the dock
if $darwin; then
GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
fi

# For Cygwin, switch paths to Windows format before running java
if $cygwin ; then
APP_HOME=`cygpath --path --mixed "$APP_HOME"`
CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
JAVACMD=`cygpath --unix "$JAVACMD"`

# We build the pattern for arguments to be converted via cygpath
ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
SEP=""
for dir in $ROOTDIRSRAW ; do
ROOTDIRS="$ROOTDIRS$SEP$dir"
SEP="|"
done
OURCYGPATTERN="(^($ROOTDIRS))"
# Add a user-defined pattern to the cygpath arguments
if [ "$GRADLE_CYGPATTERN" != "" ] ; then
OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)"
fi
# Now convert the arguments - kludge to limit ourselves to /bin/sh
i=0
for arg in "$@" ; do
CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option

if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition
eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
else
eval `echo args$i`="\"$arg\""
fi
i=$((i+1))
done
case $i in
(0) set -- ;;
(1) set -- "$args0" ;;
(2) set -- "$args0" "$args1" ;;
(3) set -- "$args0" "$args1" "$args2" ;;
(4) set -- "$args0" "$args1" "$args2" "$args3" ;;
(5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
(6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
(7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
(8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
(9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
esac
fi

# Escape application args
save () {
for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done
echo " "
}
APP_ARGS=$(save "$@")

# Collect all arguments for the java command, following the shell quoting and substitution rules
eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS"

# by default we should be in the correct project dir, but when run from Finder on Mac, the cwd is wrong
if [ "$(uname)" = "Darwin" ] && [ "$HOME" = "$PWD" ]; then
cd "$(dirname "$0")"
fi

exec "$JAVACMD" "$@"
Loading