io.codemodder.plugins.maven.PomFileUpdater Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of codemodder-plugin-maven Show documentation
Show all versions of codemodder-plugin-maven Show documentation
Plugin for providing Maven dependency management functions to codemods.
package io.codemodder.plugins.maven;
import io.codemodder.DependencyGAV;
import java.io.IOException;
import java.nio.file.Path;
import java.util.List;
/** A type responsible for making sure a pom has dependencies. */
interface PomFileUpdater {
/**
* Given a pom file, make sure it has the given dependencies, and update it if it doesn't.
*
* @param pomPath the path to the pom file
* @param dependencies the dependencies that need to be injected (if necessary) into the pom
* @throws IOException if there was an error reading or writing to the pom
*/
PomUpdateResult updatePom(Path projectDir, Path pomPath, List dependencies)
throws IOException;
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy