From f159e5c0bcac3e2c280f2b06c87374564b521050 Mon Sep 17 00:00:00 2001 From: Abdullah <89297042+AzazelSensei@users.noreply.github.com> Date: Thu, 13 Aug 2026 20:50:01 +0300 Subject: [PATCH] Clarify that enableAggregatingTask is on by default The gradle-setup page still told people to set it. That's the default now, so I dropped the snippet and noted you don't need it. --- hilt/gradle-setup.md | 19 ++++++------------- 1 file changed, 6 insertions(+), 13 deletions(-) diff --git a/hilt/gradle-setup.md b/hilt/gradle-setup.md index 2448905c959..fbd6741ebf8 100644 --- a/hilt/gradle-setup.md +++ b/hilt/gradle-setup.md @@ -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}