public class PomTransformer
extends java.lang.Object
| Constructor and Description |
|---|
PomTransformer(ModuleName currentModule,
java.util.Map<ModuleName,java.lang.String> versionsByModule,
java.lang.String scmUrl)
Transforms single pom file.
|
PomTransformer(ModuleName currentModule,
java.util.Map<ModuleName,java.lang.String> versionsByModule,
java.lang.String scmUrl,
boolean failOnSnapshot)
Transforms single pom file.
|
PomTransformer(ModuleName currentModule,
java.util.Map<ModuleName,java.lang.String> versionsByModule,
java.lang.String scmUrl,
boolean failOnSnapshot,
boolean dryRun)
Transforms single pom file.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Boolean |
transform(java.io.File pomFile)
Performs the transformation.
|
public PomTransformer(ModuleName currentModule, java.util.Map<ModuleName,java.lang.String> versionsByModule, java.lang.String scmUrl)
currentModule - The current module we work onversionsByModule - Map of module names to module versionscmUrl - Scm url to use if scm element exists in the pom filepublic PomTransformer(ModuleName currentModule, java.util.Map<ModuleName,java.lang.String> versionsByModule, java.lang.String scmUrl, boolean failOnSnapshot)
currentModule - The current module we work onversionsByModule - Map of module names to module versionscmUrl - Scm url to use if scm element exists in the pom filefailOnSnapshot - If true, fail with IllegalStateException if the pom contains snapshot version after the
version changespublic PomTransformer(ModuleName currentModule, java.util.Map<ModuleName,java.lang.String> versionsByModule, java.lang.String scmUrl, boolean failOnSnapshot, boolean dryRun)
currentModule - The current module we work onversionsByModule - Map of module names to module versionscmUrl - Scm url to use if scm element exists in the pom filefailOnSnapshot - If true, fail with IllegalStateException if the pom contains snapshot version after the
version changesdryRun - If true, changes will not take effect.