autonomousapps / dependency-analysis-gradle-plugin

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

fix: use AGP's variant.artifacts instead of tasks.named for accessing class files. #1129

Closed autonomousapps closed 4 months ago

autonomousapps commented 4 months ago

An improvement on https://github.com/autonomousapps/dependency-analysis-gradle-plugin/pull/1128. Not quite ready to drop the afterEvaluates because of this:

* What went wrong:
A problem occurred configuring project ':lib'.
> Could not create task ':lib:abiAnalysisDebug'.
   > Task with name 'bundleLibCompileToJarDebug' not found in project ':lib'.

I've wanted to delete that class for ages anyway. Will do in a follow-up.

github-actions[bot] commented 4 months ago

❌ Test workflow failed:

* Non-functional tests     : https://gradle.com/s/2ykitzs7ihh36
* TestKit check            : https://gradle.com/s/oimimdwpgmu2a
* JVM functional tests     : https://gradle.com/s/y5g73pzdyg2ce
* Android functional tests : https://gradle.com/s/vkmn5dqpujzew
* Root buildHealth         : 
* TestKit buildHealth      :