use of org.eclipse.tycho.versions.pom.Plugin in project tycho by eclipse.
the class PomManipulator method changePlugins.
private void changePlugins(String pomPath, List<Plugin> plugins, PomVersionChange change, String version, String newVersion) {
for (Plugin plugin : plugins) {
GAV pluginGAV = plugin.getGAV();
if (isPluginGavEquals(pluginGAV, change)) {
logger.info(pomPath + "/[ " + pluginGAV.getGroupId() + ":" + pluginGAV.getArtifactId() + " ] " + version + " => " + newVersion);
pluginGAV.setVersion(newVersion);
}
changePlugins(pomPath, pluginGAV, change, version, newVersion, "/dependencies/dependency/", plugin.getDependencies());
changePlugins(pomPath, pluginGAV, change, version, newVersion, "/configuration/target/artifact/", plugin.getTargetArtifacts());
}
}