While you can use Gradle directly to run your build, the setup process is toilsome and having all your developers use the same version is a pain. The Gradle Wrapper script deals with these problems for you, and is the recommended way to use Gradle.
Run . setup.sh
Then enter the exercises
directory.
The exercises
directory is the root of your new project, where you want to use Gradle to build it.
- Run
gradle wrapper
- Examine the generated files. The following files and folders have been created:
.gradle/
gradle/
gradlew
gradlew.bat
- Run
./gradlew --version
and verify that the version is the same as when runninggradle --version
- Run
./gradlew wrapper --gradle-version 5.6.4
to update the version used by the gradle wrapper - Run
./gradlew --version
again - Run
gradle --version
again
gradle wrapper
gradle wrapper --gradle-version x.y.z
gradle --version
andgradlew --version