Begin release branch for Gradle 1.7.
Add a transformer for getClass()'ing.
Revert "Revert "Support calling single arg enum methods (incl. setters) of DSL objects with strings.""

This reverts commit a960c2ad0c80ee6fdb87d2249fbf990eebc209c5.
Add a CollectionUtils.score() method.

The intended use is for sorting items by a derived property that is expensive to calculate.
Add method for finding a single method in an inheritance sensitive fashion.
Fix calling instance methods during construction of Groovy classes.

Now that we route all method calls through DynamicObject, we need to specially handle the case where methods are being called in the constructor. This is because the field introduced in the subclass that actually handles method calls will not have been created yet.
Add support for calling private methods in our dynamic object protocol.

After the change to route _all_ method calls through our dynamic stuff, calling private methods (internally) broke. The Groovy MOP treats private methods differently, and doesn't expose them for calling from the outside (which is what we are doing). This adds special handling for private methods, trying to emulate Groovy's method dispatch.

 This is implemented as a fallback for when the normal Groovy dispatch system fails to find the method. This is based on the assumption that Groovy will be faster at dispatching method calls than us because it has received more optimisation in this area. Therefore, only when we fail to dispatch via Groovy's MOP do we fall back to our search for private methods.

 This is very likely to introduce some overhead for calling private methods, but shouldn't introduce any overhead for calling non private methods.
Use a different linker arg on windows sample

Looks like "/INTEGRITYCHECK:NO" prevents the generated executable from running on windows.
Revert "Message for incubating execution mode is not shown if the mode is explicitly configured (e.g. gradle.properties)."

This reverts commit 7fa641429cdd04a00f8bdf3f6364909fbd32a5ae.

It didn't work for the daemon execution and I wasn't happy with the implementation, too.

(cherry picked from commit d21b4bc)
Tweaked the incubating message a tiny bit. The parallel mode and configuration on demand are now printed as a single line if both modes are enabled.

(cherry picked from commit 1a23499)
Merge branch 'release'

Merged release changes in to get fix for C++ sample.
Also brings in luke's groovy DSL changes.