Book Image

Gradle Essentials

By : Abhinandan Maheshwari
Book Image

Gradle Essentials

By: Abhinandan Maheshwari

Overview of this book

Gradle is an advanced and modern build automation tool. It inherits the best elements of the past generation of build tools, but it also differs and innovates to bring terseness, elegance, simplicity, and the flexibility to build. Right from installing Gradle and writing your first build file to creating a fully-fledged multi-module project build, this book will guide you through its topics in a step-by-step fashion. You will get your hands dirty with a simple Java project built with Gradle and go on to build web applications that are run with Jetty or Tomcat. We take a unique approach towards explaining the DSL using the Gradle API, which makes the DSL more accessible and intuitive. All in all, this book is a concise guide to help you decipher the Gradle build files, covering the essential topics that are most useful in real-world projects. With every chapter, you will learn a new topic and be able to readily implement your build files.
Table of Contents (17 chapters)
Gradle Essentials
Credits
About the Authors
Acknowledgments
About the Reviewers
www.PacktPub.com
Preface
Index

Summary


In this chapter, we discussed different migration strategies from existing build tools to Gradle, which could be very handy for users who are planning to migrate their existing Ant and Maven scripts to Gradle. We also discussed how to publish artifacts to repositories, which is a key functionality of any build tool, which help the users to always fetch the latest artifacts from the repositories. We discussed CI framework with the help of Jenkins and how Gradle fits into this flow, while automating the build and deployment solution. Finally, we discussed how to generate documents for the Java code.

In the next chapter, we will be discussing how to integrate TestNG with Gradle, which would help the user to run test cases as a part of the Gradle build. We will also be discussing integration testing strategies and Gradle integration with code analysis and code coverage tools.