/** * Walks through the Gradle {@link Configuration} and initiates the build of source dependencies */ public void resolveArtifacts() { if (configuration.isCanBeResolved()) { configuration.resolutionStrategy(new Action<ResolutionStrategy>() { @Override public void execute(ResolutionStrategy strategy) { strategy.eachDependency(dependencyAction); } }); } else { log.warn("srcdeps: Configuration {} cannot be resolved", configuration); } }
public ResolutionStrategy failOnVersionConflict() { mutationValidator.validateMutation(STRATEGY); this.conflictResolution = new StrictConflictResolution(); return this; }
public ResolutionStrategy eachDependency(Action<? super DependencyResolveDetails> rule) { mutationValidator.validateMutation(STRATEGY); dependencySubstitutions.allWithDependencyResolveDetails(rule); return this; }
public ResolutionStrategy componentSelection(Action<? super ComponentSelectionRules> action) { action.execute(componentSelectionRules); return this; }
public ResolutionStrategy dependencySubstitution(Action<? super DependencySubstitutions> action) { action.execute(dependencySubstitutions); return this; }
@Override public Configuration resolutionStrategy(Action<? super ResolutionStrategy> action) { action.execute(resolutionStrategy); return this; }
public ResolutionStrategy failOnVersionConflict() { this.conflictResolution = new StrictConflictResolution(); return this; }
public ResolutionStrategy eachDependency(Action<? super DependencyResolveDetails> rule) { dependencyResolveRules.add(rule); return this; }