|Understand Gradle In Half An Hour
|Written by Nikos Vaggalis
|Tuesday, 14 September 2021
Gradle, the build automation tool for multi-language software development that is widely used for Android is notoriously difficult to use. To help, here's a YouTube playlist on "Understanding Gradle" that is straight to the point.
It could also be given the title "How to make Gradle less dreadful". In Love It or Hate It, Gradle Reaches Version 7.0 I put forward some reasons why Gradle is not the most user-friendly tool:
cryptic syntax, contradictory terms (see compile versus implementation) and peculiar blocks of elements.
Furthermore Gradle is a tool that:
always stirs arguments among developers
and according to Bruce Eckel, author of Thinking in Java, Thinking in C++ and Atomic Kotlin amongst others:
To do anything in Gradle you have to know everything
Fortunately we came across a resource that eases this requirement since it goes through the fundamental building blocks in a brief and succinct way.
Understanding Gradle currently comprises a series of 6 short videos (more are still being added) that collectively are about 30 minutes long:
According to the author, Jendrik Johannes of onepiece.Software:
Each video only scratches the surfaces of the features shown. This is on purpose to give you a general understanding of how things work in Gradle. This understanding enables you to structure your project in a readable and maintainable way.
And that's exactly what Johannes does. Instead of going through the dense documentation to find your bearings, you get to that in watching a few short videos; setting up your project, extending it with Plugins and understanding the build process through its Tasks.
So what is the target group? Gradle was, and is, the prime build tool for Android; the move towards Kotlin DSL adoption is another testament to the tool's Android roots; as the platform evolved so has Gradle.
However, if you are doing pure Java you'd better of with Maven. Still even in that world, a lot of projects have been adopting Gradle lately because, despite being a difficult-to-use build system, it is considered superior to Maven. Therefore, even if you're not going to use it yourself, general knowledge of how things work would be useful when encountering it out in the wild.
The project also has a Github repository with the accompanying code, and, as the series is ongoing, make sure you subscribe to the channel to be notified of more material.
or email your comment to: firstname.lastname@example.org
|Last Updated ( Tuesday, 14 September 2021 )