| Package | Description |
|---|---|
| org.codehaus.mojo.versions | |
| org.codehaus.mojo.versions.api | |
| org.codehaus.mojo.versions.ordering | |
| org.codehaus.mojo.versions.reporting | |
| org.codehaus.mojo.versions.utils |
| Modifier and Type | Method and Description |
|---|---|
protected org.apache.maven.artifact.versioning.ArtifactVersion |
AbstractVersionsUpdaterMojo.updatePropertyToNewestVersion(ModifiedPomXMLEventReader pom,
Property property,
PropertyVersions version,
String currentVersion,
boolean allowDowngrade,
Optional<Segment> unchangedSegment) |
| Modifier and Type | Method and Description |
|---|---|
static Segment |
Segment.of(int index) |
static Segment |
Segment.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Segment[] |
Segment.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
Segment.isMajorTo(Segment other)
Returns true if the given segment is more major than the other
|
| Modifier and Type | Method and Description |
|---|---|
<V extends AbstractVersionDetails,R> |
ArtifactVersionsCache.get(V artifactVersions,
Optional<Segment> updateScope)
Returns the required information for the given
ArtifactVersions object and the given update scope. |
org.apache.maven.artifact.versioning.ArtifactVersion[] |
VersionDetails.getAllUpdates(org.apache.maven.artifact.versioning.ArtifactVersion currentVersion,
Optional<Segment> updateScope,
boolean includeSnapshots)
Returns the all versions newer than the specified current version, but within the specified update scope.
|
org.apache.maven.artifact.versioning.ArtifactVersion[] |
AbstractVersionDetails.getAllUpdates(org.apache.maven.artifact.versioning.ArtifactVersion currentVersion,
Optional<Segment> updateScope,
boolean includeSnapshots) |
org.apache.maven.artifact.versioning.ArtifactVersion[] |
VersionDetails.getAllUpdates(Optional<Segment> updateScope)
Returns the all versions newer than the specified current version, but within the specified update scope.
|
org.apache.maven.artifact.versioning.ArtifactVersion[] |
AbstractVersionDetails.getAllUpdates(Optional<Segment> updateScope) |
org.apache.maven.artifact.versioning.ArtifactVersion[] |
VersionDetails.getAllUpdates(Optional<Segment> updateScope,
boolean includeSnapshots)
Returns the all versions newer than the specified current version, but within the specified update scope.
|
org.apache.maven.artifact.versioning.ArtifactVersion[] |
AbstractVersionDetails.getAllUpdates(Optional<Segment> updateScope,
boolean includeSnapshots) |
protected Optional<String> |
AbstractVersionDetails.getLowerBound(org.apache.maven.artifact.versioning.ArtifactVersion version,
Optional<Segment> unchangedSegment)
Returns the string designation of the lower bound version based on the given artifact version
and the lowest unchanged segment index (0-based); -1 means that the whole version string can be changed,
implying that there is also no string designation of the lower bound version.
|
org.apache.maven.artifact.versioning.ArtifactVersion[] |
VersionDetails.getNewerVersions(String version,
Optional<Segment> upperBoundSegment,
boolean includeSnapshots)
Deprecated.
please use
AbstractVersionDetails.getNewerVersions(String, Optional, boolean, boolean),
boolean, boolean)} instead |
org.apache.maven.artifact.versioning.ArtifactVersion[] |
AbstractVersionDetails.getNewerVersions(String version,
Optional<Segment> upperBoundSegment,
boolean includeSnapshots)
Deprecated.
|
org.apache.maven.artifact.versioning.ArtifactVersion[] |
VersionDetails.getNewerVersions(String versionString,
Optional<Segment> upperBoundSegment,
boolean includeSnapshots,
boolean allowDowngrade)
Returns an array of newer versions than the given version, given the upper bound segment and whether snapshots
should be included.
|
org.apache.maven.artifact.versioning.ArtifactVersion[] |
AbstractVersionDetails.getNewerVersions(String versionString,
Optional<Segment> unchangedSegment,
boolean includeSnapshots,
boolean allowDowngrade) |
org.apache.maven.artifact.versioning.ArtifactVersion |
VersionDetails.getNewestUpdate(org.apache.maven.artifact.versioning.ArtifactVersion currentVersion,
Optional<Segment> updateScope,
boolean includeSnapshots)
Returns the newest version newer than the specified current version, but within the specified update scope or
null if no such version exists. |
org.apache.maven.artifact.versioning.ArtifactVersion |
AbstractVersionDetails.getNewestUpdate(org.apache.maven.artifact.versioning.ArtifactVersion currentVersion,
Optional<Segment> updateScope,
boolean includeSnapshots) |
org.apache.maven.artifact.versioning.ArtifactVersion |
VersionDetails.getNewestUpdate(Optional<Segment> updateScope)
Returns the newest version newer than the specified current version, but within the specified update scope or
null if no such version exists. |
org.apache.maven.artifact.versioning.ArtifactVersion |
AbstractVersionDetails.getNewestUpdate(Optional<Segment> updateScope) |
org.apache.maven.artifact.versioning.ArtifactVersion |
VersionDetails.getNewestUpdate(Optional<Segment> updateScope,
boolean includeSnapshots)
Returns the newest version newer than the specified current version, but within the specified update scope or
null if no such version exists. |
org.apache.maven.artifact.versioning.ArtifactVersion |
AbstractVersionDetails.getNewestUpdate(Optional<Segment> updateScope,
boolean includeSnapshots) |
org.apache.maven.artifact.versioning.ArtifactVersion |
PropertyVersions.getNewestVersion(String versionString,
Property property,
boolean allowSnapshots,
Collection<org.apache.maven.project.MavenProject> reactorProjects,
VersionsHelper helper,
boolean allowDowngrade,
Optional<Segment> upperBoundSegment)
Retrieves the newest artifact version for the given property-denoted artifact or
null if no newer
version could be found. |
| Constructor and Description |
|---|
ArtifactVersionsCache(BiFunction<AbstractVersionDetails,Optional<Segment>,?> cachedFunction)
Constructs a new instance given the concrete function for obtaining the details
|
| Modifier and Type | Method and Description |
|---|---|
Segment |
BoundArtifactVersion.getSegment()
Returns the most major segment that can change.
|
Segment |
InvalidSegmentException.getSegment() |
| Modifier and Type | Method and Description |
|---|---|
protected org.apache.maven.artifact.versioning.ArtifactVersion |
MercuryVersionComparator.innerIncrementSegment(org.apache.maven.artifact.versioning.ArtifactVersion v,
Segment segment)
Deprecated.
|
protected org.apache.maven.artifact.versioning.ArtifactVersion |
NumericVersionComparator.innerIncrementSegment(org.apache.maven.artifact.versioning.ArtifactVersion v,
Segment segment)
Deprecated.
|
protected org.apache.maven.artifact.versioning.ArtifactVersion |
MavenVersionComparator.innerIncrementSegment(org.apache.maven.artifact.versioning.ArtifactVersion v,
Segment segment) |
| Modifier and Type | Method and Description |
|---|---|
default org.apache.maven.artifact.versioning.Restriction |
VersionComparator.restrictionFor(org.apache.maven.artifact.versioning.ArtifactVersion currentVersion,
Optional<Segment> scope)
Returns a Restriction object for computing version upgrades
with the given segment allowing updates, with all more major segments locked in place.
|
| Constructor and Description |
|---|
BoundArtifactVersion(org.apache.maven.artifact.versioning.ArtifactVersion artifactVersion,
Segment segment)
Constructs the instance
|
InvalidSegmentException(Segment segment,
int segmentCount,
org.apache.maven.artifact.versioning.ArtifactVersion version)
Constructs the exception object
|
| Modifier and Type | Method and Description |
|---|---|
protected static <V extends ArtifactVersions> |
OverviewStats.getNewestUpdate(ArtifactVersionsCache cache,
V details,
Optional<Segment> segment) |
| Modifier and Type | Method and Description |
|---|---|
static Optional<Segment> |
SegmentUtils.determineUnchangedSegment(boolean allowMajorUpdates,
boolean allowMinorUpdates,
boolean allowIncrementalUpdates,
org.apache.maven.plugin.logging.Log log)
Based on the passed flags, determines which segment which is not to be changed.
|
Copyright © 2008–2022 MojoHaus. All rights reserved.