}
}});
}
});
War war = project.getTasks().add(WAR_TASK_NAME, War.class);
war.setDescription("Generates a war archive with all the compiled classes, the web-app content and the libraries.");
war.setGroup(BasePlugin.BUILD_GROUP);
Configuration archivesConfiguration = project.getConfigurations().getByName(Dependency.ARCHIVES_CONFIGURATION);
disableJarTaskAndRemoveFromArchivesConfiguration(project, archivesConfiguration);
archivesConfiguration.addArtifact(new ArchivePublishArtifact(war));
configureConfigurations(project.getConfigurations());
}