Properly manage dependencies.

Use nested lists, so artifacts with same groupId do not get lost.
Enterprise gradle 1.10-1.2.2