public static UnknownModelException unknownModel(Class<?> type, InternalUnsupportedModelException failure) {
return new UnknownModelException(String.format("No model of type '%s' is available in this build.", type.getSimpleName()), failure.getCause());
}
public static UnsupportedVersionException unsupportedFeature(String feature, String targetVersion, String versionAdded) {
return new UnsupportedVersionException(String.format("The version of Gradle you are using (%s) does not support %s. Support for this was added in Gradle %s and is available in all later versions.",
targetVersion, feature, versionAdded));
}