The project paths accepted by the include
and project
methods are logical paths, not physical paths. They cannot contain a ..
. Physical paths must be declared separately in settings.gradle
(if they divert from the logical path). The easiest way to declare a flat physical directory layout is to use the includeFlat
method:
common/settings.gradle
includeFlat 'profile'
common/build.gradle
dependencies {
compile project(':profile')
}
You can find more information on this topic in the "multi-project builds" chapter of the Gradle User Guide.