Class ContextualSnapshotVersionFilter
- java.lang.Object
-
- org.eclipse.aether.util.graph.version.ContextualSnapshotVersionFilter
-
- All Implemented Interfaces:
org.eclipse.aether.collection.VersionFilter
public class ContextualSnapshotVersionFilter extends java.lang.Object implements org.eclipse.aether.collection.VersionFilter
A version filter that blocks "*-SNAPSHOT" versions if theroot artifactof the dependency graph is not a snapshot.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringCONFIG_PROP_ENABLEDeprecated.use snapshot filter instead to always ban snapshots
-
Constructor Summary
Constructors Constructor Description ContextualSnapshotVersionFilter()Creates a new instance of this version filter.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.eclipse.aether.collection.VersionFilterderiveChildFilter(org.eclipse.aether.collection.DependencyCollectionContext context)booleanequals(java.lang.Object obj)voidfilterVersions(org.eclipse.aether.collection.VersionFilter.VersionFilterContext context)inthashCode()
-
-
-
Field Detail
-
CONFIG_PROP_ENABLE
@Deprecated public static final java.lang.String CONFIG_PROP_ENABLE
Deprecated.use snapshot filter instead to always ban snapshotsThe key in the repository session'sconfiguration propertiesused to store aBooleanflag whether this filter should be forced to ban snapshots. By default, snapshots are only filtered if the root artifact is not a snapshot.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ContextualSnapshotVersionFilter
public ContextualSnapshotVersionFilter()
Creates a new instance of this version filter.
-
-
Method Detail
-
filterVersions
public void filterVersions(org.eclipse.aether.collection.VersionFilter.VersionFilterContext context)
- Specified by:
filterVersionsin interfaceorg.eclipse.aether.collection.VersionFilter
-
deriveChildFilter
public org.eclipse.aether.collection.VersionFilter deriveChildFilter(org.eclipse.aether.collection.DependencyCollectionContext context)
- Specified by:
deriveChildFilterin interfaceorg.eclipse.aether.collection.VersionFilter
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-