Gradle Essentials

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

Gradle Essentials

Kunal Dabir, Abhinandan

1 customer reviews
Master the fundamentals of Gradle using real-world projects with this quick and easy-to-read guide
Mapt Subscription
FREE
$29.99/m after trial
eBook
$16.80
RRP $23.99
Save 29%
Print + eBook
$29.99
RRP $29.99
What do I get with a Mapt Pro subscription?
  • Unlimited access to all Packt’s 5,000+ eBooks and Videos
  • Early Access content, Progress Tracking, and Assessments
  • 1 Free eBook or Video to download and keep every month after trial
What do I get with an eBook?
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with Print & eBook?
  • Get a paperback copy of the book delivered to you
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with a Video?
  • Download this Video course in MP4 format
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
$0.00
$16.80
$29.99
$29.99p/m after trial
RRP $23.99
RRP $29.99
Subscription
eBook
Print + eBook
Start 30 Day Trial
Subscribe and access every Packt eBook & Video.
 
  • 5,000+ eBooks & Videos
  • 50+ New titles a month
  • 1 Free eBook/Video to keep every month
Start Free Trial
 
Preview in Mapt

Book Details

ISBN 139781783982363
Paperback176 pages

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.

Table of Contents

Chapter 1: Running Your First Gradle Task
Installing Gradle
The Gradle command-line interface
The first Gradle build script
Summary
Chapter 2: Building Java Projects
Building a simple Java project
Unit testing
Bundling an application distributable
Generating IDE project files
Summary
Chapter 3: Building a Web Application
Building a simple Java web project
References
Project dependencies
Summary
Chapter 4: Demystifying Build Scripts
Groovy for Gradle build scripts
Gradle – an object-oriented build tool
Build phases
Gradle Project API
Tasks
References
Summary
Chapter 5: Multiprojects Build
The multiproject directory layout
The settings.gradle file
Organizing build logic in multiproject builds
Summary
Chapter 6: The Real-world Project with Gradle
Migrating from an Ant-based project
Migrating from a Maven project
Publishing artifacts
Continuous Integration
Generating documentation
Summary
Chapter 7: Testing and Reporting with Gradle
Testing with TestNG
Integration testing
Code coverage
Code analysis reports
Summary
Chapter 8: Organizing Build Logic and Plugins
Extracting build logic to buildSrc
The first plugin
Configuring plugins
Summary
Chapter 9: Polyglot Projects
The polyglot application
Building Groovy projects
Building Scala projects
Joint compilation
References
Summary

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

Authors

Table of Contents

Chapter 1: Running Your First Gradle Task
Installing Gradle
The Gradle command-line interface
The first Gradle build script
Summary
Chapter 2: Building Java Projects
Building a simple Java project
Unit testing
Bundling an application distributable
Generating IDE project files
Summary
Chapter 3: Building a Web Application
Building a simple Java web project
References
Project dependencies
Summary
Chapter 4: Demystifying Build Scripts
Groovy for Gradle build scripts
Gradle – an object-oriented build tool
Build phases
Gradle Project API
Tasks
References
Summary
Chapter 5: Multiprojects Build
The multiproject directory layout
The settings.gradle file
Organizing build logic in multiproject builds
Summary
Chapter 6: The Real-world Project with Gradle
Migrating from an Ant-based project
Migrating from a Maven project
Publishing artifacts
Continuous Integration
Generating documentation
Summary
Chapter 7: Testing and Reporting with Gradle
Testing with TestNG
Integration testing
Code coverage
Code analysis reports
Summary
Chapter 8: Organizing Build Logic and Plugins
Extracting build logic to buildSrc
The first plugin
Configuring plugins
Summary
Chapter 9: Polyglot Projects
The polyglot application
Building Groovy projects
Building Scala projects
Joint compilation
References
Summary

Book Details

ISBN 139781783982363
Paperback176 pages
Read More
From 1 reviews

Read More Reviews

Recommended for You

Learning Docker Book Cover
Learning Docker
$ 39.99
$ 8.00
Mastering Web Application Development with AngularJS Book Cover
Mastering Web Application Development with AngularJS
$ 26.99
$ 5.40
Mastering Docker Book Cover
Mastering Docker
$ 39.99
$ 28.00
AngularJS Web Application Development Blueprints Book Cover
AngularJS Web Application Development Blueprints
$ 29.99
$ 21.00
Learning Reactive Programming with Java 8 Book Cover
Learning Reactive Programming with Java 8
$ 35.99
$ 7.20
Mastering Jenkins Book Cover
Mastering Jenkins
$ 39.99
$ 28.00