Gradle selective dependency in parent build -
i have project structure:
parent/ build.gradle settings.gradle child1/ build.gradle child2/ build.gradle child3/ build.gradle i have dependency dep1 shared between child1 , child2 not child3. there way define a
dependencies { compile dep1 } in parent build.gradle, tell apply child1 , child2?
or have define dependency in each of child1 , child2's build.gradle files, not show in child3?
one thing can
configure(subprojects.findall {it.name != 'child3'}) { dependencies { // dep1 } } you can see find more sub-project configuration options in gradle user guild here.
Comments
Post a Comment