gradle-master/subprojects/docs/src/snippets/developingPlugins/conventionOverConfiguration/groovy/buildSrc/src/main/java/org/myorg/ServerPlugin.java
package org.myorg;

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

public class ServerPlugin implements Plugin<Project> {
    @Override
    public void apply(Project project) {
        ServerExtension extension = project.getExtensions().create("server", ServerExtension.class);
        extension.getUrl().convention("https://www.myorg.com/server");
        Deploy deployTask = project.getTasks().create("deploy", Deploy.class);
        deployTask.getUrl().set(extension.getUrl());
    }
}
