Realize Build Happiness
Realize Build Happiness
Because gradle is awesome :).
Quick show-of of how I use gradle. |
Here you have to do stuff.
Simplest way to use Gradle is by using the gradle-wrapper.
Gradle wrapper is a shell script that downloads Gradle for you.
git clone https://github.com/ieugen/gradle-intro.git
./gradlew
./gradlew tasks
For faster Gradle build you might wish to enable gradle build daemon. |
Most of the time you will run tasks. .Simple tasks
./gradlew tasks
./gradlew projects
./gradlew tasks --info
./gradlew :tasks
./gradlew -q :tasks
./gradlew -b exercises/001-hello-world.gradle -q hello
Examine output with and without -q, --info --debug . |
determines which projects are going to take part in the build
Project objects are configured (task configuration block are executed)
Gradle determines the subset of the tasks, created and configured during the configuration phase, to be executed.
Because the Tasks to run are determined dynamic, Gradle is very flexible. |
mkdir sandbox && cd sandbox
../gradlew init --type basic
./gradlew tasks
You don’t need gradle to do that, but it is good to use is since you get the gradle wrapper. |
See exercises.
Thank you for you time.