I have a multi-project build, where one of the sub-projects has a dpendency on something that I don’t want any of the other projects to depend on. In Eclipse you normally would just check the NoExport box for that project dependency.
Is there something similar in Gradle?
For example if I have a project that depends on bar
And another project baz that depends on foo, the dependency tree looks like this
I don’t want bar’s files to be included in the final baz.APK, hence the notion of not exporting bar from foo sounds like what I’m after.
Is there some way to do this in Gradle? I’m sure that I can find a way to exclude bar from baz, but since I have many projects which will depend on foo, I’d rather make the change in foo if it is possible.
BTW, I’m not using Eclipse, just AndroidStudio or building from the command line.