Version requiredVersion = getRequiredVersionForProject(p);
return new DefaultVersionInfo(Versions.CURRENT, requiredVersion);
}
private Version getRequiredVersionForProject(ManagedProject p) {
Version requiredFormatVersion = getRequiredVersion();
Version requiredProjectVersion = p.getProjectFile().getMinimumVersionRequired();
return requiredFormatVersion.isLaterThan(requiredProjectVersion) ?
requiredFormatVersion : requiredProjectVersion;
}