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 16
16
17
17
package com .lightbend .paradox .apidoc
18
18
19
- import _root_ . io .github .lukehutch . fastclasspathscanner . FastClasspathScanner
19
+ import io .github .classgraph . ClassGraph
20
20
import com .lightbend .paradox .markdown .Writer
21
21
import com .lightbend .paradox .sbt .ParadoxPlugin
22
22
import com .lightbend .paradox .sbt .ParadoxPlugin .autoImport .paradoxDirectives
@@ -42,8 +42,11 @@ object ApidocPlugin extends AutoPlugin {
42
42
paradoxDirectives ++= Def .taskDyn {
43
43
val classpath = (fullClasspath in Compile ).value.files.map(_.toURI.toURL).toArray
44
44
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
47
50
Def .task { Seq (
48
51
{ _ : Writer .Context ⇒ new ApidocDirective (allClasses) }
49
52
)}
You can’t perform that action at this time.
0 commit comments