com.atlassian.maven.plugins.jgitflow.helper.ProjectHelper Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of maven-jgitflow-plugin Show documentation
Show all versions of maven-jgitflow-plugin Show documentation
A plugin to support doing git-flow releases
package com.atlassian.maven.plugins.jgitflow.helper;
import java.util.List;
import java.util.Map;
import com.atlassian.jgitflow.core.JGitFlow;
import com.atlassian.maven.plugins.jgitflow.ReleaseContext;
import com.atlassian.maven.plugins.jgitflow.exception.JGitFlowReleaseException;
import org.apache.maven.project.MavenProject;
import org.eclipse.jgit.api.Git;
/**
* @since version
*/
public interface ProjectHelper
{
public static final String AT_PARENT = "parent";
public static final String AT_DEPENDENCY = "dependency";
public static final String AT_DEPENDENCY_MGNT = "dependency management";
public static final String AT_PLUGIN = "plugin";
public static final String AT_PLUGIN_MGNT = "plugin management";
public static final String AT_REPORT = "report";
public static final String AT_EXTENSIONS = "extensions";
String getReleaseVersion(ReleaseContext ctx, MavenProject rootProject) throws JGitFlowReleaseException;
String getHotfixVersion(ReleaseContext ctx, MavenProject rootProject, String lastRelease) throws JGitFlowReleaseException;
String getDevelopmentVersion(ReleaseContext ctx, MavenProject rootProject) throws JGitFlowReleaseException;
Map getOriginalVersions(String key, List reactorProjects);
Map getReleaseVersions(String key, List reactorProjects, ReleaseContext ctx) throws JGitFlowReleaseException;
Map getHotfixVersions(String key, List reactorProjects, ReleaseContext ctx, Map lastReleaseVersions) throws JGitFlowReleaseException;
Map getDevelopmentVersions(String key, List reactorProjects, ReleaseContext ctx) throws JGitFlowReleaseException;
void ensureOrigin(String defaultRemote, JGitFlow flow) throws JGitFlowReleaseException;
void commitAllChanges(Git git, String message) throws JGitFlowReleaseException;
void commitAllPoms(Git git, List reactorProjects, String message) throws JGitFlowReleaseException;
List checkForNonReactorSnapshots(String key, List reactorProjects) throws JGitFlowReleaseException;
String getFeatureStartName(ReleaseContext ctx, JGitFlow flow) throws JGitFlowReleaseException;
String getFeatureFinishName(ReleaseContext ctx, JGitFlow flow) throws JGitFlowReleaseException;
}