use of org.gradle.api.internal.DefaultActionConfiguration in project gradle by gradle.
the class DefaultIvyArtifactRepository method setMetadataSupplier.
@Override
public void setMetadataSupplier(Class<? extends ComponentMetadataSupplier> rule, Action<? super ActionConfiguration> configureAction) {
DefaultActionConfiguration configuration = new DefaultActionConfiguration();
configureAction.execute(configuration);
this.componentMetadataSupplierClass = rule;
this.componentMetadataSupplierParams = configuration.getParams();
}
use of org.gradle.api.internal.DefaultActionConfiguration in project gradle by gradle.
the class DefaultCompatibilityRuleChain method add.
@Override
public void add(Class<? extends AttributeCompatibilityRule<T>> rule, Action<? super ActionConfiguration> configureAction) {
DefaultActionConfiguration configuration = new DefaultActionConfiguration();
configureAction.execute(configuration);
rules.add(new InstantiatingAction<T>(rule, configuration.getParams(), instantiator));
}
use of org.gradle.api.internal.DefaultActionConfiguration in project gradle by gradle.
the class DefaultDisambiguationRuleChain method add.
@Override
public void add(Class<? extends AttributeDisambiguationRule<T>> rule, Action<? super ActionConfiguration> configureAction) {
DefaultActionConfiguration configuration = new DefaultActionConfiguration();
configureAction.execute(configuration);
this.rules.add(new InstantiatingAction<T>(rule, configuration.getParams(), instantiator));
}
use of org.gradle.api.internal.DefaultActionConfiguration in project gradle by gradle.
the class DefaultVariantTransformRegistry method getTransformParameters.
private Object[] getTransformParameters(Action<? super ActionConfiguration> configAction) {
if (configAction == null) {
return NO_PARAMETERS;
}
ActionConfiguration config = new DefaultActionConfiguration();
configAction.execute(config);
return config.getParams();
}
Aggregations