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")?
For example, there are 3 modules in my project:
app
,utils
andfeature
. Inapp
, there are also 2 flavor:dev
andprod
.So, where should I add the
dependencyGuard{}
closure? In project-levelbuild.gradle
, or in all module-levelbuild.gradle
, or only inapp > build.gradle
?And moreover, should I update
configuration("releaseRuntimeClasspath")
to reflect the flavor? It meansconfiguration("prodReleaseRuntimeClasspath")
?