File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
src/main/scala/com/lightbend/paradox/apidoc Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 1616
1717package com .lightbend .paradox .apidoc
1818
19- import _root_ . io .github .lukehutch . fastclasspathscanner . FastClasspathScanner
19+ import io .github .classgraph . ClassGraph
2020import com .lightbend .paradox .markdown .Writer
2121import com .lightbend .paradox .sbt .ParadoxPlugin
2222import com .lightbend .paradox .sbt .ParadoxPlugin .autoImport .paradoxDirectives
@@ -42,8 +42,11 @@ object ApidocPlugin extends AutoPlugin {
4242 paradoxDirectives ++= Def .taskDyn {
4343 val classpath = (fullClasspath in Compile ).value.files.map(_.toURI.toURL).toArray
4444 val classLoader = new java.net.URLClassLoader (classpath, this .getClass.getClassLoader)
45- val scanner = new FastClasspathScanner (apidocRootPackage.value).addClassLoader(classLoader).scan()
46- val allClasses = scanner.getNamesOfAllClasses.asScala.toVector
45+ val scanner = new ClassGraph ()
46+ .whitelistPackages(apidocRootPackage.value)
47+ .addClassLoader(classLoader)
48+ .scan()
49+ val allClasses = scanner.getAllClasses.getNames.asScala.toVector
4750 Def .task { Seq (
4851 { _ : Writer .Context ⇒ new ApidocDirective (allClasses) }
4952 )}
You can’t perform that action at this time.
0 commit comments