JakeWharton/hugo — pull request #35 by joninvski (2014-06-26 21:11:56+00:00)
Title: Use same gradle version for hugo-example

There is a bug when the following tasks are executed:

* cleanExample
* assembleExample
* installExample

In these tasks the gradle of the system is used instead of gradlew.
This leads to strange errors when the two versions are different.

Three possible corrections.

1. Change the command to execute from gradle to ../gradlew in
build.gradle

task cleanExample(type: Exec) {
executable = '../gradlew'
workingDir = project.file('hugo-example')
...

2. Make the cleanExample task depend on :hugo-example:clean task

task cleanExample(dependsOn: ':hugo-example:assemble')

3. Change the documentation in README.md to directly do the commands of
subprojects

./gradlew hugo-example:cleanExample

This commit implements the second option but please advise.