Working with existing builds

Table of Contents

Installing Gradle
Prerequisites
Download
Unpacking
Environment variables
Running and testing your installation
JVM options
Command-Line Interface
Executing tasks
Common tasks
Project reporting
Command-line completion
Debugging options
Performance options
Logging options
Execution options
Bootstrapping new projects
Environment options
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
What is dependency management?
Declaring your dependencies
Dependency configurations
External dependencies
Repositories
Publishing artifacts
Where to next?
Executing Multi-Project Builds
Structure of a multi-project build
Executing a multi-project build
Continuous build
How do I start and stop a continuous build?
What will cause a subsequent build?
Limitations and quirks
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
Working through problems
Getting 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
Configure the Build Cache
How to set up an HTTP build cache backend
Implement your own Build Cache