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'):
http://www.nabble.com/file/p25911294/build.gradle build.gradle
http://www.nabble.com/file/p25911294/settings.gradle settings.gradle
Thanks 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.
--
View this message in context:
http://www.nabble.com/Wrong-reference-to-%27project%27-in-multi-build-tp25911294p25911294.html
Sent from the gradle-user mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email