Skip to content

Commit

Permalink
fix dependency downloader failing with non-semver dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
FalsePattern committed Jun 3, 2024
1 parent bd5772c commit df70a0c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -502,11 +502,6 @@ private static void scanDeps() {
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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,9 @@ public int compareTo(@NotNull Version o) {
throw new IllegalArgumentException("Unknown version type: " + o.getClass().getName());
}
}

@Override
public String toString() {
return versionString;
}
}

0 comments on commit df70a0c

Please sign in to comment.