I have a trouble with my multi-project. In some subprojects I am executing several *.gradle build files, like: build.gradle, buildMy.gradle, … The problem is that files with not default names, don’t see root settings.gradle file, so they don’t know the structure of multi-project.
Detailed: Currently my root project is having next structure of subprojects:
subproject1 subproject2 … subprojectN/subsubProj1 subprojectN/subsubProj2
in my subprojectN/subsubProj2 I’m having file two build files: build.gradle and build2.gradle which has the same lines:
...
dependencies {
compile project(':subprojectN/subsubProj1')
}
...
for build.gradle result is succesfull, while for build2.gradle project is not found. Error log: project with path ‘:subprojectN/subsubProj1’ couldn’t be found in root project ‘subsubProj2’