Search in sources :

Example 1 with NonTransformedModelDslBacking

use of org.gradle.model.dsl.internal.NonTransformedModelDslBacking 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);
    }
}
Also used : ModelRegistry(org.gradle.model.internal.registry.ModelRegistry) NonTransformedModelDslBacking(org.gradle.model.dsl.internal.NonTransformedModelDslBacking) TransformedModelDslBacking(org.gradle.model.dsl.internal.TransformedModelDslBacking) NonTransformedModelDslBacking(org.gradle.model.dsl.internal.NonTransformedModelDslBacking)

Aggregations

NonTransformedModelDslBacking (org.gradle.model.dsl.internal.NonTransformedModelDslBacking)1 TransformedModelDslBacking (org.gradle.model.dsl.internal.TransformedModelDslBacking)1 ModelRegistry (org.gradle.model.internal.registry.ModelRegistry)1