Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 6 additions & 13 deletions hilt/gradle-setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -216,26 +216,19 @@ class MyApplication : MultiDexApplication()

### Aggregating Task {#aggregating-task}

The Hilt Gradle plugin offers an option for performing Hilt's classpath
aggregation in a dedicated Gradle task. This allows the Hilt annotation
processors to be
The Hilt Gradle plugin performs Hilt's classpath aggregation in a dedicated
Gradle task. This allows the Hilt annotation processors to be
[isolating](https://docs.gradle.org/current/userguide/java_plugin.html#isolating_annotation_processors)
so they are only invoked when necessary. This reduces incremental compilation
times by reducing how often an incremental change causes a rebuild of the Dagger
components. Enabling this option also enables
components. The aggregating task also enables
[sharing test components](flags.md#sharing-test-components) and
[classpath aggregation](#classpath-aggregation). Note that this option replaces
[classpath aggregation](#classpath-aggregation). Note that this replaces
`enableExperimentalClasspathAggregation` since it has the same benefits without
any of its caveats.

To enable the aggregating task, apply the following configuration in your
Android module's `build.gradle`:

```
hilt {
enableAggregatingTask = true
}
```
`enableAggregatingTask` is enabled by default, so you no longer need to set it
explicitly in your module's `build.gradle`.

### Applying other processor arguments {#applying-other-processor-arguments}

Expand Down