CodeQL library for Java/Kotlin
codeql/java-all 1.1.0 (changelog, source)
Search

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

import semmle.code.java.DependencyCounts
predicate hasDashedVersion(string target, string name, string version)