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.66k stars 116 forks source link

Add an option to shush the AGP compatibility warning #1194

Open liutikas opened 1 month ago

liutikas commented 1 month ago

Is your feature request related to a problem? Please describe.

Today, if you sue dependency analysis gradle plugin with the latest version of AGP you will always get

The Dependency Analysis plugin is only known to work with versions of AGP between 8.0.0 and 8.4.0-alpha01. You are using 8.6.0-alpha03. Proceed at your own risk.

Describe the solution you'd like

I'd like to have an option of disabling this warning. Gradle property or DSL would work great.

Describe alternatives you've considered

We currently added this warning to our warning allowlist system, sadly it print out every time configuration is run even if an unrelated task is run

Additional context AndroidX tends to use the latest version of AGP for various integration reasons, so we cannot hold back until dependency-analysis-gradle-plugin is updated. We'd like to proceed at our own risk and have no warnings.

eygraber commented 1 month ago

I think you can add dependency.analysis.compatibility=NONE to gradle.properties

pvdmde commented 2 weeks ago

Please just update the compatibility matrix for the .1 patch

MGaetan89 commented 2 weeks ago

Please just update the compatibility matrix for the .1 patch

It was already done in https://github.com/autonomousapps/dependency-analysis-gradle-plugin/pull/1195, but not yet released in a stable version. You can try the snapshot if needed.