public final class ContextualSnapshotVersionFilter extends Object implements org.eclipse.aether.collection.VersionFilter
root artifact
of the dependency graph is not a
snapshot. Alternatively, this filter can be forced to always ban snapshot versions by setting the boolean
configuration property
CONFIG_PROP_ENABLE
to
true
.Modifier and Type | Field and Description |
---|---|
static String |
CONFIG_PROP_ENABLE
The key in the repository session's
configuration
properties used to store a Boolean flag whether this filter should be forced to ban snapshots. |
Constructor and Description |
---|
ContextualSnapshotVersionFilter()
Creates a new instance of this version filter.
|
Modifier and Type | Method and Description |
---|---|
org.eclipse.aether.collection.VersionFilter |
deriveChildFilter(org.eclipse.aether.collection.DependencyCollectionContext context) |
boolean |
equals(Object obj) |
void |
filterVersions(org.eclipse.aether.collection.VersionFilter.VersionFilterContext context) |
int |
hashCode() |
public static final String CONFIG_PROP_ENABLE
configuration
properties
used to store a Boolean
flag whether this filter should be forced to ban snapshots. By
default, snapshots are only filtered if the root artifact is not a snapshot.public ContextualSnapshotVersionFilter()
public void filterVersions(org.eclipse.aether.collection.VersionFilter.VersionFilterContext context)
filterVersions
in interface org.eclipse.aether.collection.VersionFilter
public org.eclipse.aether.collection.VersionFilter deriveChildFilter(org.eclipse.aether.collection.DependencyCollectionContext context)
deriveChildFilter
in interface org.eclipse.aether.collection.VersionFilter
Copyright © 2010–2019 The Apache Software Foundation. All rights reserved.