mirror of
https://github.com/FalsePattern/FalsePatternLib.git
synced 2026-11-11 23:07:32 +00:00
fix dependency downloader failing with non-semver dependencies
This commit is contained in:
2 files changed
+5
-5
No files matched your search
-5
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user