Working with existing builds

Table of Contents

Installing Gradle
Prerequisites
Installing with a package manager
Installing manually
Verifying installation
Next steps
Command-Line Interface
Executing tasks
Common tasks
Project reporting
Command-line completion
Debugging options
Performance options
Logging options
Execution options
Environment options
Bootstrapping new projects
Continuous Build
The Gradle Wrapper
Adding the Gradle Wrapper
Using the Gradle Wrapper
Upgrading the Gradle Wrapper
Customizing the Gradle Wrapper
The Gradle Daemon
Why the Gradle Daemon is important for performance
Running Daemon Status
Disabling the Daemon
Stopping an existing Daemon
FAQ
Tools & IDEs
How does the Gradle Daemon make builds faster?
Dependency Management for Java Projects
Dissecting a typical build script
Declaring module dependencies
Using dependency configurations
Declaring common Java repositories
Publishing artifacts
Executing Multi-Project Builds
Structure of a multi-project build
Executing a multi-project build
Composite builds
What is a composite build?
Defining a composite build
Interacting with a composite build
Declaring the dependencies substituted by an included build
Depending on tasks in an included build
Current limitations and future plans for composite builds
Build Environment
Gradle properties
System properties
Environment variables
Project properties
Configuring JVM memory
Configuring a task using project properties
Accessing the web through a HTTP proxy
Troubleshooting
Troubleshooting Gradle installation
Debugging dependency resolution
Troubleshooting slow Gradle builds
Debugging build logic
Debugging IDE integration
Getting additional help
Embedding Gradle using the Tooling API
Introduction to the Tooling API
Tooling API Features
Tooling API and the Gradle Build Daemon
Quickstart
Gradle version and Java version compatibility
Java version
Build Cache
Overview
Enable the Build Cache
Task Output Caching
Cacheable tasks
Configure the Build Cache
How to set up an HTTP build cache backend
Implement your own Build Cache