Make GradleModel.getDependencies() unique by configuration