static final String GROOVY = "groovy";
public void apply(Project project, PluginRegistry pluginRegistry, Map<String, ?> customValues) {
JavaPlugin javaPlugin = pluginRegistry.apply(JavaPlugin.class, project, customValues);
GroovyPluginConvention groovyPluginConvention = new GroovyPluginConvention(project, customValues);
project.getConvention().getPlugins().put("groovy", groovyPluginConvention);
<BUG>Configuration groovyConfiguration = project.getConfigurations().add(GROOVY).setVisible(false).setTransitive(false);

configureCompile(project);</BUG>
configureTestCompile(javaPlugin, project);
configureJavadoc(project);

static final String GROOVY = "groovy";
public void apply(Project project, PluginRegistry pluginRegistry, Map<String, ?> customValues) {
JavaPlugin javaPlugin = pluginRegistry.apply(JavaPlugin.class, project, customValues);
GroovyPluginConvention groovyPluginConvention = new GroovyPluginConvention(project, customValues);
project.getConvention().getPlugins().put("groovy", groovyPluginConvention);
Configuration groovyConfiguration = project.getConfigurations().add(GROOVY).setVisible(false).setTransitive(false).
setDescription("The groovy libraries to be used for this Groovy project.");
configureCompile(project);
configureTestCompile(javaPlugin, project);
configureJavadoc(project);
