diff options
author | Ivan Gavrilovic <gavra@google.com> | 2022-05-18 14:53:39 +0100 |
---|---|---|
committer | Ivan Gavrilovic <gavra@google.com> | 2022-05-24 12:42:42 +0000 |
commit | 3439a9482a474d32488b04ed1a9a8800dd6f5ecd (patch) | |
tree | a54ccedd677aeb4b9c5618374549feb4e0fc5528 | |
parent | 45346919c3a22a467e2d9ae7ca23365b597c516d (diff) | |
download | base-3439a9482a474d32488b04ed1a9a8800dd6f5ecd.tar.gz |
Warn when using deprecated Gradle APIs in transforms
Gradle 7.5 deprecated IncrementalTaskInputs API, so this
change logs a warning in AGP when this API is used, advising
users to use a non-incremental version of the task.
Bug: 233037463
Test: updating existing
Change-Id: Ie675feb9754fbc198da6140ae2ea5c32d858c420
(cherry picked from commit f3a5fb5a8b348ded23a2868334b0e5b7d0368d51)
-rw-r--r-- | build-system/gradle-core/src/main/java/com/android/build/gradle/internal/errors/DeprecationReporter.kt | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/build-system/gradle-core/src/main/java/com/android/build/gradle/internal/errors/DeprecationReporter.kt b/build-system/gradle-core/src/main/java/com/android/build/gradle/internal/errors/DeprecationReporter.kt index e4900335bc..54062482a8 100644 --- a/build-system/gradle-core/src/main/java/com/android/build/gradle/internal/errors/DeprecationReporter.kt +++ b/build-system/gradle-core/src/main/java/com/android/build/gradle/internal/errors/DeprecationReporter.kt @@ -16,6 +16,7 @@ package com.android.build.gradle.internal.errors +import com.android.build.gradle.options.BooleanOption import com.android.build.gradle.options.Option import com.android.build.gradle.options.Version @@ -106,6 +107,11 @@ interface DeprecationReporter { There is no single replacement for the Transform APIāthere are new, targeted APIs for each use case. All the replacement APIs are in the `androidComponents {}` block. + + The Transform API uses incremental APIs deprecated since Gradle 7.5. Please add + `${BooleanOption.LEGACY_TRANSFORM_TASK_FORCE_NON_INCREMENTAL.propertyName}=true` to + `gradle.properties` to fix this issue. Note that this will run transforms + non-incrementally and may have a build performance impact. """.trimIndent() ) ; |