package org.sample;

import org.gradle.api.Plugin;
import org.gradle.api.Project;

import java.util.LinkedHashMap;

public class GreetingPlugin implements Plugin<Project> {

    public void apply(Project project) {
        GreetingExtension extension = project.getExtensions().create("greeting", GreetingExtension.class);
        Provider<GreetingTask> task = project.getTasks().register("greeting", GreetingTask.class);
        project.afterEvaluate(p -> {
            task.configure {
                setWho(extension.getWho());
            }
        });
    }
}

package org.sample;

import org.gradle.api.Plugin;
import org.gradle.api.Project;

import java.util.LinkedHashMap;

public class GreetingPlugin implements Plugin<Project> {

    public void apply(Project project) {
        GreetingExtension extension = project.getExtensions().create("greeting", GreetingExtension.class);
        Provider<GreetingTask> task = project.getTasks().register("greeting", GreetingTask.class);
        project.afterEvaluate(p -> {
            task.configure({
                setWho(extension.getWho());
            })
        });
    }
}

Fix broken composite build sample
Fix broken composite build sample
