return ConfigureUtil.configure(closure, createDefaultOsgiManifest(project));
}
private OsgiManifest createDefaultOsgiManifest(Project project) {
OsgiHelper osgiHelper = new OsgiHelper();
OsgiManifest osgiManifest = new DefaultOsgiManifest(((ProjectInternal) project).getFileResolver());
osgiManifest.setVersion(osgiHelper.getVersion((String) project.property("version")));
osgiManifest.setName(project.getConvention().getPlugin(BasePluginConvention.class).getArchivesBaseName());
osgiManifest.setSymbolicName(osgiHelper.getBundleSymbolicName(project));
return osgiManifest;
}