The intended use is to generate the Export-Package OSGi header value to automatically expose the current classpath to an embedded OSGi container.
Example:
Collection
.select(
jars(
include(
"*.jar",
"bar-*.jar"),
exclude(
"*dira*.jar")),
packages(
include(
"org.*",
"com.*",
"javax.*",
"org.twdata.pkgscanner.*"),
exclude(
"com.intellij.*")))
.withMappings(
mapPackage("org.twdata.pkgscanner.foo").toVersion("2.0.4"))
.scan();