concept tooling api in category gradle

appears as: tooling API
Gradle in Action - corrected 9052019

This is an excerpt from Manning's book Gradle in Action - corrected 9052019.

Most IDE vendors use the tooling API to embed Gradle into their products. The tooling API is part of Gradle’s public API and is used to execute and monitor a build. While the API’s main focus is to embed Gradle into third-party applications, it can also be used in other situations. You’ll get to know one of these use cases and apply the API in practice. You’ll start by using Gradle’s IDE plugins to generate project files for your To Do application.

10.3. Embedding Gradle with the tooling API

The main purpose of the tooling API is to embed Gradle into an application. Without knowing it, you already used the tooling API, because it’s the main driver for Gradle support in IDEs. The tooling API is good for achieving three main goals:

Listing 10.16. Integration testing using the tooling API