CodeQL library for Java
codeql/java-all 0.4.4 (changelog, source)

Predicate hasDashedVersion

Given a JAR filename, try to split it into a name and version. This is a heuristic approach assuming that the a dash is used to separate the library name from a largely numeric version such as commons-io-2.4.

Import path

predicate hasDashedVersion(string target, string name, string version)