fix dependency downloader failing with non-semver dependencies

This commit is contained in:
FalsePattern committed 2024-06-03 08:50:23 +02:00
1 parent bd5772cbce
commit df70a0c9e1
2 files changed
+5 -5

No files matched your search

@@ -502,11 +502,6 @@ public class DependencyLoaderImpl {
val build = matcher.group(5);
version = new SemanticVersion(major, minor, patch, preRelease, build);
} catch (IllegalArgumentException e) {
LOG.warn("Unparseable dependency version {}:{}:{} from {}",
groupId,
artifactId,
parts[2],
source);
version = new RawVersion(parts[2]);
}
final String classifier = parts.length > 3 ? parts[3] : null;
@@ -47,4 +47,9 @@ public class RawVersion extends Version {
throw new IllegalArgumentException("Unknown version type: " + o.getClass().getName());
}
}
@Override
public String toString() {
return versionString;
}
}