Hi,
I would like to get the strictly/preferred/required version I created in the toml file. How is this possible?
Example toml:
[versions]
groovy = { strictly = "[2.5,3.0)", prefer = "2.5.13" }
I saw the current implementation from the versions is:
private String doGetVersion(String name) {
ImmutableVersionConstraint version = findVersionConstraint(name);
String requiredVersion = version.getRequiredVersion();
if (!requiredVersion.isEmpty()) {
return requiredVersion;
}
String strictVersion = version.getStrictVersion();
if (!strictVersion.isEmpty()) {
return strictVersion;
}
return version.getPreferredVersion();
}
I would like to just get e.g. the strict version.
How can I achieve this?