The ‘MapNotationParser’ in Gradle 1.0 milestone 9 is removing known dependency properties (group/name/version, etc.) from any dependency definition specified as a Map:
This works so far until Gradle 1.0-milestone-8a. With Gradle 1.0-milestone-9 our testNg dependency declaration map is emptied somewhere during the build and causes the build to fail.
In order to find the bug I just guarded this map with an asImmutable() method.
This seems not to work at all because now there is an UnsupportedOperationException for all declared dependencies thrown by the MapNotationParser. You can check this out with the following simple build file:
Even if the testNg dependency declaration is emptied somewhere in our build script (but it works with 8a) than it would be great if the dependency declaration could be made immutable in order to prevent accidental modifications.