From 237a00f8ea2f3e2689d4e76821d937c552459b87 Mon Sep 17 00:00:00 2001 From: Romain Rochegude Date: Wed, 6 May 2020 16:53:20 +0200 Subject: [PATCH] Fix reflection issue inside gradle plugin --- .../plantuml/tasks/BuildClassDiagramTask.groovy | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) 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 )