use of org.gradle.model.dsl.internal.TransformedModelDslBacking in project gradle by gradle.
the class DefaultProject method model.
// Not part of the public API
public void model(Closure<?> modelRules) {
prepareForRuleBasedPlugins();
ModelRegistry modelRegistry = getModelRegistry();
if (TransformedModelDslBacking.isTransformedBlock(modelRules)) {
ClosureBackedAction.execute(new TransformedModelDslBacking(modelRegistry, this.getRootProject().getFileResolver()), modelRules);
} else {
new NonTransformedModelDslBacking(modelRegistry).configure(modelRules);
}
}
Aggregations