[GRADLE-2744] remapping subproject location in settings.gradle prevent working from inside its folder Created: 10/Apr/13 Updated: 02/Sep/13 Resolved: 02/Sep/13
|Reporter:||Xavier Ducrohet||Assignee:||René Gröschke (Inactive)|
Given the following settings.gradle:
Doing any gradle command from the libs/project2 folder fails to evaluate all projects defined in settings.gradle.
Gradle basically considers project2 to be a single project setup, which makes dependency on other subprojects broken unless the command is ran from the root folder.
Is this expected? Is there no way to have a hierarchical folder structure that does not map to a hierarchical project structure.
I don't want "libs" to be a project.
|Comment by Xavier Ducrohet [ 20/Jun/13 ]|
Turns out that this is solved by doing instead
project(':project2').projectDir = new File(rootDir, 'libs/project2')