FastClasspathScanner has been renamed to ClassGraph

19 views
Skip to first unread message

Luke Hutchison

unread,
Jul 28, 2018, 11:07:10 PM7/28/18
to ClassGraph-Users
In preparation for the v4.0 release, FastClasspathScanner has been renamed to ClassGraph.

There are several reasons for this:

Most importantly, the Java runtime environment is more or less deprecating the legacy classpath in favor of a fully modular future. FastClasspathScanner already has complete support for module scanning -- but "FastClasspathAndModulePathScanner" would not have been a good name.

Secondly, FastClasspathScanner has outgrown what it was created to do, which was to scan the classpath for annotations. It is now able to reconstruct the entire class graph, along with most type information, and information about methods and fields -- the name "ClassGraph" better reflects this. The API is pretty uniform and complete at this stage: https://github.com/classgraph/classgraph/wiki/ClassGraph-API

Thirdly, "FastClasspathScanner" was never a good name to begin with :-)  It was too long to type or say.

The new Maven rule will be:

<dependency>
    <groupId>io.github.classgraph</groupId>
    <artifactId>classgraph</artifactId>
    <version>LATEST</version>
</dependency>

and the new module dependency will be:

requires io.github.classgraph;

There will be new beta packages up as soon as Sonatype approves the change (the above Maven rule may not work for a day or two). I am planning to release version 4 final in a few days. Please continue to report any bugs you find.

Sorry to update yet another thing in preparation for the v4 release, but hopefully this is the last major breaking change.

Thanks for your patience,

Luke

Reply all
Reply to author
Forward
0 new messages