@Override
protected void execute(final XRepoConfiguration config, final Project project) {
final Configuration compileClasspath = configuration(COMPILE_CLASSPATH, project);
final Configuration testCompile = configuration(TEST_COMPILE, project);
if (compileClasspath != null && testCompile != null) {
final DependencyOverwrites dependencyOverwrites = collectDependenciesToOverwrite(compileClasspath, testCompile, config, project);
project.getConfigurations().forEach(conf -> overwriteDependencies(conf, dependencyOverwrites, config, project));
} else {
warn(project, "Java plugin was not used, cannot overwrite dependencies");
}
}