Class ContextualSnapshotVersionFilter

java.lang.Object
org.eclipse.aether.util.graph.version.ContextualSnapshotVersionFilter
All Implemented Interfaces:
org.eclipse.aether.collection.VersionFilter

public final class ContextualSnapshotVersionFilter extends Object implements org.eclipse.aether.collection.VersionFilter
A version filter that blocks "*-SNAPSHOT" versions if the 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.
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.eclipse.aether.collection.VersionFilter

    org.eclipse.aether.collection.VersionFilter.VersionFilterContext
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    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 Summary

    Constructors
    Constructor
    Description
    Creates a new instance of this version filter.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.eclipse.aether.collection.VersionFilter
    deriveChildFilter(org.eclipse.aether.collection.DependencyCollectionContext context)
     
    boolean
     
    void
    filterVersions(org.eclipse.aether.collection.VersionFilter.VersionFilterContext context)
     
    int
     

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • CONFIG_PROP_ENABLE

      public static final 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. By default, snapshots are only filtered if the root artifact is not a snapshot.
      See Also:
  • Constructor Details

  • Method Details

    • filterVersions

      public void filterVersions(org.eclipse.aether.collection.VersionFilter.VersionFilterContext context)
      Specified by:
      filterVersions in interface org.eclipse.aether.collection.VersionFilter
    • deriveChildFilter

      public org.eclipse.aether.collection.VersionFilter deriveChildFilter(org.eclipse.aether.collection.DependencyCollectionContext context)
      Specified by:
      deriveChildFilter in interface org.eclipse.aether.collection.VersionFilter
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object