Gradle plugin for JVM projects written in Java, Kotlin, Groovy, or Scala; and Android projects written in Java or Kotlin. Provides advice for managing dependencies and other applied plugins
Apache License 2.0
1.67k
stars
115
forks
source link
How to change buildHealth task's dependencies #1212
(Optional) Kotlin and Kotlin Gradle Plugin (KGP) version
1.9.22
(Optional) Android Gradle Plugin (AGP) version
8.3.2
Describe the bug
The task ends with the exception below
Task :app:kaptNonMinifiedInternalKotlin FAILED
To Reproduce
Steps to reproduce the behavior:
This is an internal issue
Expected behavior
The task should terminate successfully.
Additional context
I use Android Macrobenchmark Gradle plugin. This plugin adds more build types besides release, debug such as nonMinifiedRelease, etc. And somehow buildHealth depends on the all build types and failing. Is there a way to override what buildHealth is supposed to depend? nonMinifiedRelease is not a used build type and we are not adding most dependencies to it.
Plugin version 1.32.0
Gradle version 8.8
JDK version 17
(Optional) Kotlin and Kotlin Gradle Plugin (KGP) version 1.9.22
(Optional) Android Gradle Plugin (AGP) version 8.3.2
Describe the bug The task ends with the exception below
To Reproduce Steps to reproduce the behavior: This is an internal issue
Expected behavior The task should terminate successfully.
Additional context I use Android Macrobenchmark Gradle plugin. This plugin adds more build types besides
release
,debug
such asnonMinifiedRelease
, etc. And somehow buildHealth depends on the all build types and failing. Is there a way to override what buildHealth is supposed to depend?nonMinifiedRelease
is not a used build type and we are not adding most dependencies to it.