dropbox / dependency-guard

A Gradle plugin that guards against unintentional dependency changes.
Apache License 2.0
390 stars 14 forks source link

Where to add `dependencyGuard{}` closure in project with multi modules & flavors? #107

Open trietbui85 opened 3 months ago

trietbui85 commented 3 months ago

For example, there are 3 modules in my project: app, utils and feature. In app, there are also 2 flavor: dev and prod.

So, where should I add the dependencyGuard{} closure? In project-level build.gradle, or in all module-level build.gradle, or only in app > build.gradle?

And moreover, should I update configuration("releaseRuntimeClasspath") to reflect the flavor? It means configuration("prodReleaseRuntimeClasspath")?