diff --git a/src/main/groovy/com/github/roroche/plantuml/tasks/BuildClassDiagramTask.groovy b/src/main/groovy/com/github/roroche/plantuml/tasks/BuildClassDiagramTask.groovy index 9fd0737..6bfc112 100644 --- a/src/main/groovy/com/github/roroche/plantuml/tasks/BuildClassDiagramTask.groovy +++ b/src/main/groovy/com/github/roroche/plantuml/tasks/BuildClassDiagramTask.groovy @@ -70,12 +70,10 @@ class BuildClassDiagramTask extends DefaultTask implements CustomTask { new ClsInPackage( extension.packageName, new Reflections( - new ConfigurationBuilder() - .setScanners( - new SubTypesScanner(false), - new TypeAnnotationsScanner() - ).setExecutorService( - Executors.newFixedThreadPool(4) + new ConfigurationBuilder( + ).setScanners( + new SubTypesScanner(false), + new TypeAnnotationsScanner() ).setClassLoaders( classLoader )