public class ConfigHelper extends Object
| Modifier and Type | Field and Description |
|---|---|
static de.palsoftware.tools.maven.git.autover.conf.AutoverBranchConfig |
DEFAULT_BUGFIX_CONFIG
Default configuration for the bugfix branch.
|
static de.palsoftware.tools.maven.git.autover.conf.AutoverBranchConfig |
DEFAULT_FEATURE_CONFIG
Default configuration for the feature branch.
|
static de.palsoftware.tools.maven.git.autover.conf.AutoverBranchConfig |
DEFAULT_MASTER_CONFIG
Default configuration for the master branch.
|
static de.palsoftware.tools.maven.git.autover.conf.AutoverBranchConfig |
DEFAULT_OTHER_CONFIG
Default configuration for the other branches.
|
static de.palsoftware.tools.maven.git.autover.conf.AutoverBranchConfig |
DEFAULT_PR_CONFIG
Default configuration for the PR branch.
|
static de.palsoftware.tools.maven.git.autover.conf.AutoverBranchConfig |
DEFAULT_RELEASE_CONFIG
Default configuration for the release branch.
|
static String |
DEFAULT_VERSION_TAG_REGEX
The default version tag regular expression.
|
static String |
TO_BE_CALCULATED_ARTIFACT_VERSION
The marker artifact version that will indicate that the maven extension should calculate the version.
|
| Constructor and Description |
|---|
ConfigHelper(AutoverConfigDecorator aConfig)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
String |
calculateVer(GitAnalysisResult gitAnalysisResult)
Calculate the version based on the configuration and the git analysis result.
|
AutoverBranchConfigDecorator |
getBranchConfig(String branchName)
Determine the branch configuration that needs to be used.
|
static de.palsoftware.tools.maven.git.autover.conf.AutoverConfig |
getDefaultConfiguration()
Get the default maven extension configuration (usually when none was found).
|
boolean |
matchesTagRegEx(String tagShortName)
Check if the specified tag matches the version tag regex.
|
boolean |
shouldProcessArtifact(String version,
String groupId,
String artifactId)
If the artifact with the specified id should be processed (the version should be calculated).
|
public static final String DEFAULT_VERSION_TAG_REGEX
public static final de.palsoftware.tools.maven.git.autover.conf.AutoverBranchConfig DEFAULT_MASTER_CONFIG
public static final de.palsoftware.tools.maven.git.autover.conf.AutoverBranchConfig DEFAULT_RELEASE_CONFIG
public static final de.palsoftware.tools.maven.git.autover.conf.AutoverBranchConfig DEFAULT_FEATURE_CONFIG
public static final de.palsoftware.tools.maven.git.autover.conf.AutoverBranchConfig DEFAULT_BUGFIX_CONFIG
public static final de.palsoftware.tools.maven.git.autover.conf.AutoverBranchConfig DEFAULT_PR_CONFIG
public static final de.palsoftware.tools.maven.git.autover.conf.AutoverBranchConfig DEFAULT_OTHER_CONFIG
public static final String TO_BE_CALCULATED_ARTIFACT_VERSION
public ConfigHelper(AutoverConfigDecorator aConfig)
aConfig - the maven extension configuration to usepublic static de.palsoftware.tools.maven.git.autover.conf.AutoverConfig getDefaultConfiguration()
public boolean shouldProcessArtifact(String version, String groupId, String artifactId)
version - the versiongroupId - the group idartifactId - the artifact idpublic AutoverBranchConfigDecorator getBranchConfig(String branchName)
branchName - the branch namepublic String calculateVer(GitAnalysisResult gitAnalysisResult)
gitAnalysisResult - the git analysis resultpublic boolean matchesTagRegEx(String tagShortName)
tagShortName - the tagCopyright © 2020. All rights reserved.