gradlew clean assemble*nix:
./gradlew clean assemble
In the build/distributions
folder you can find the generated Gradle distributions. Note that you will
need internet access the first time you run this, as the Gradle wrapper will download a number of dependencies the
first time it runs.
To learn more about the Gradle wrapper and how you can use it for your own projects build with Gradle have a look at the user guide.
./gradlew clean install -Pgradle_installPath=someDir
The install task deletes any existing Gradle distribution at the specified destination. You specify the install
destination with the gradle_installPath
property. This property is interpreted relative to the
source directory.
You can set this property in the gradle.properties
file of your Gradle home directory (usually
USER_HOME/.gradle
). For how to set project properties you may have a look at the
user guide.