Search in sources :

Example 1 with Plugin

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());
    }
}
Also used : GAV(org.eclipse.tycho.versions.pom.GAV) Plugin(org.eclipse.tycho.versions.pom.Plugin)

Aggregations

GAV (org.eclipse.tycho.versions.pom.GAV)1 Plugin (org.eclipse.tycho.versions.pom.Plugin)1