public static final String PROVIDED_RUNTIME = "providedRuntime";
public static final String ECLIPSE_WTP = "eclipseWtp";
public void apply(Project project, PluginRegistry pluginRegistry, Map<String, ?> customValues) {
pluginRegistry.apply(JavaPlugin.class, project, customValues);
project.task(project.getArchivesTaskBaseName() + "_jar").setEnabled(false);
<BUG>War war = ((Bundle) project.task("libs")).war();
project.getConfigurations().get(Dependency.MASTER_CONFIGURATION).addArtifact(new ArchivePublishArtifact(war));</BUG>
configureConfigurations(project.getConfigurations());
configureEclipse(project, war);
}

public static final String PROVIDED_RUNTIME = "providedRuntime";
public static final String ECLIPSE_WTP = "eclipseWtp";
public void apply(Project project, PluginRegistry pluginRegistry, Map<String, ?> customValues) {
pluginRegistry.apply(JavaPlugin.class, project, customValues);
project.task(project.getArchivesTaskBaseName() + "_jar").setEnabled(false);
War war = ((Bundle) project.task("libs")).war();
war.setDescription("Generates a war archive with all the compiled classes, the web-app content and the libraries.");
project.getConfigurations().get(Dependency.MASTER_CONFIGURATION).addArtifact(new ArchivePublishArtifact(war));
configureConfigurations(project.getConfigurations());
configureEclipse(project, war);
}
