Hi all,
I'm currently trying to simplify the build process of several projects by combining them into a single gradle multi-project build. In general everything works like a charm, I can keep my flat-layout and the resulting build files are amazingly simpler and shorter than my previous ANT files.
However, I'm running into troubles with those tasks declared in my 'master' project under subproject { ... }. The root of all these problems seems to be the loss of the reference to 'project' which is always set to the last referenced project in 'settings.gradle'.
I've attached you a sample build file that shows this (just create the directories 'project1', 'project2' and 'master', copy these files into 'master' and run 'gradle info'):
build.gradlesettings.gradleThanks in advance
Rafa
PS: I know I can always find a workaround using 'delegate' or 'task.project' like I've done in the file I've uploaded, but it's quite easy to make a mistake.