public DependencySelector deriveChildSelector( DependencyCollectionContext context ) { if ( coreArtifact || !isLegacyCoreArtifact( context.getDependency().getArtifact() ) ) { return this; } else { return new WagonExcluder( true ); } }
public VersionFilter deriveChildFilter( DependencyCollectionContext context ) { if ( !isEnabled( context.getSession() ) ) { Artifact artifact = context.getArtifact(); if ( artifact == null ) { // no root artifact to test, allow snapshots and recheck once we reach the direct dependencies return this; } if ( artifact.isSnapshot() ) { // root is a snapshot, allow snapshots all the way down return null; } } // artifact is a non-snapshot or filter explicitly enabled, block snapshots all the way down return filter; }
Map<Object, Collection<Exclusion>> managedExclusions = this.managedExclusions; for ( Dependency managedDependency : context.getManagedDependencies() )
public VersionFilter deriveChildFilter( DependencyCollectionContext context ) { if ( !isEnabled( context.getSession() ) ) { Artifact artifact = context.getArtifact(); if ( artifact == null ) { // no root artifact to test, allow snapshots and recheck once we reach the direct dependencies return this; } if ( artifact.isSnapshot() ) { // root is a snapshot, allow snapshots all the way down return null; } } // artifact is a non-snapshot or filter explicitly enabled, block snapshots all the way down return filter; }
Map<Object, Collection<Exclusion>> managedExclusions = this.managedExclusions; for ( Dependency managedDependency : context.getManagedDependencies() )
public DependencySelector deriveChildSelector( DependencyCollectionContext context ) { if ( this.transitive || context.getDependency() == null ) { return this; } return new ScopeDependencySelector( true, included, excluded ); }
public DependencySelector deriveChildSelector( DependencyCollectionContext context ) { if ( this.transitive || context.getDependency() == null ) { return this; } return new ScopeDependencySelector( true, included, excluded ); }
@Override public org.eclipse.aether.collection.DependencySelector deriveChildSelector(DependencyCollectionContext context) { if (depth > 1) { return this; } else { return new ScopeDependencySelector(topLevelScopes, transitiveScopes, context.getDependency(), this, depth + 1); } }
@Override public org.eclipse.aether.collection.DependencySelector deriveChildSelector(DependencyCollectionContext context) { if (depth > 1) { return this; } else { return new ScopeDependencySelector(topLevelScopes, transitiveScopes, context.getDependency(), this, depth + 1); } }
@Override public DependencySelector deriveChildSelector(DependencyCollectionContext context) { boolean module = this.classifier.equals(context.getDependency().getArtifact().getClassifier()); if ((depth > 0) && module) { return new StaticDependencySelector(false); } return new AddonDependencySelector(this, context.getDependency(), this.classifier, depth + 1); }
public DependencySelector deriveChildSelector( DependencyCollectionContext context ) Dependency dependency = context.getDependency(); Collection<Exclusion> exclusions = ( dependency != null ) ? dependency.getExclusions() : null; if ( exclusions == null || exclusions.isEmpty() )
public DependencySelector deriveChildSelector( DependencyCollectionContext context ) Dependency dependency = context.getDependency(); Collection<Exclusion> exclusions = ( dependency != null ) ? dependency.getExclusions() : null; if ( exclusions == null || exclusions.isEmpty() )