The map notation makes for very readable code because I don’t have to call compile() 20 times for 20 dependencies. However the example of that notation doesn’t show how an exclude would be specified.
A quick read of the code says that there is currently no way to express excludes with the multiple map syntax unfortunately. It does work when you are only using one map though.
Feel free to raise a feature request at http://issues.gradle.org if you want some way to specify excludes with this syntax.
Actually, a quick read of the code says that that actually doesn’t work.
It looks like there is currently no way to express excludes with the multiple map syntax unfortunately. It does work when you are only using one map though.