Last one: In some projects I see people putting mo...
# gradle
u
Last one: In some projects I see people putting modules inside a folder, lets say "features". And then in settings.gradle they have include "featuresfeature1", how can this work? I thought ":" meant a module, and looking at file system its just a folder (and therefore in my mind should use the projectDir = new File (..), no?
g
Yes
features
will be an empty module created implicitly without build.gradle But you can add build.gradle to features too. It allows to add common configuration for all modules using
subprojects{}
u
This I dont understand, how is it a module and not a plain folder if it doesnt have any build file declaring it is com.android.library?
g
com.andrid.library is just a plugin and has nothing with Gradle project (aka module) declaration
build.gradle is also optional, to declare module is enough to include some dir in settings.gradle
And when you include some project as: include("foobar") Will be registered not only bar, but also foo
And Foo will be a parent project of bar
👍 1