private static GradleDependency managedDependencyFromInvocation(InvocationWithClosure invocation)
{
Map<String, String> map = Maps.newHashMap(invocation.getMapParameter());
String config = map.remove("configuration");
GradleDependency gradleDep = dependencyFromMap(config, map);
gradleDep = loadDependencyConfiguration(gradleDep, invocation);
return gradleDep;
}