Some topics about Gradle that were unclear or strange for me are explained
Size: 422.86 KB
Language: en
Added: May 21, 2020
Slides: 16 pages
Slide Content
Gradle explained
Andrey Mukamolov
Plan
1.Preface
2.What is build system
3.What is special about Gradle
4.Examples
Preface
●Gradle is cool but complex
●Not so much devs understand it
Build systems
Build automation is the process of automating the creation of a software build and the associated processes including:
compiling computer source code into binary code, packaging binary code, and running automated tests.
Wiki
Build automation software => build systems
Build systems: example
●Make
●Maven
●Apache Ant
●MSBuild
●Xcodebuild
●… and Gradle
What’s in common?
Do some stuff on input files and produce output files
Gradle termins
●Task - executable build step: assemble, compile, jar, prepare
●Plugin - defines tasks and their order
●Module - your code etc.
●Project - set of modules
Plugins
Gradle has set of default plugins for Java, Kotlin, Groovy, etc
But you need to tell Gradle to apply them to your project
Don’t execute task if its input
haven’t changed from
previous execution
buildSrc
●Default “project”
●Can define other plugins
●Extra tasks, plugins and code
●Cover logic with tests
●Usage: extra stuff for main build scripts