Have a personal or library account? Click to login
Gradle Essentials Cover

Gradle Essentials

Master the fundamentals of Gradle using real-world projects with this quick and easy-to-read guide

Paid access
|Dec 2015
Product purchase options

Master the fundamentals of Gradle using real-world projects with this quick and easy-to-read guide

Key Features

  • Write beautiful build scripts for various types of projects effortlessly
  • Become more productive by harnessing the power and elegance of the Gradle DSL
  • Learn how to use Gradle quickly and effectively with this step-by-step guide

Book Description

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.

What you will learn

  • Master the Gradle DSL by identifying the building blocks
  • Learn just enough Groovy for Gradle
  • Set up tests and reports for your projects to make them CI ready
  • Create library, stand-alone, and web projects
  • Craft multi-module projects quickly and efficiently
  • Migrate existing projects to a modern Gradle build
  • Extract common build logic into plugins
  • Write builds for languages like Java, Groovy, and Scala

Who this book is for

This book is for Java and other JVM-based language developers who want to use Gradle or are already using Gradle on their projects.
No prior knowledge of Gradle is required, but some familiarity with build-related terminologies and an understanding of the Java language would help.

Table of Contents

  1. Hello Gradle - Getting Gradle to run a task on your machine
  2. Build and Test a simple Java Project with Gradle
  3. Building Web applications
  4. Build Scripts revisited
  5. Multi module Project
  6. Real world projects with Gradle
  7. Testing and Reporting with Gradle
  8. Organize Build Logic and Plugins
  9. Polygot projects
PDF ISBN: 978-1-78398-237-0
Publisher: Packt Publishing Limited
Copyright owner: © 2015 Packt Publishing Limited
Publication date: 2015
Language: English
Pages: 176