diff --git a/plugins-compat-tester-model/src/main/java/org/jenkins/tools/test/model/hook/PluginCompatTesterHooks.java b/plugins-compat-tester-model/src/main/java/org/jenkins/tools/test/model/hook/PluginCompatTesterHooks.java index 063a00ea0..623c69d5c 100644 --- a/plugins-compat-tester-model/src/main/java/org/jenkins/tools/test/model/hook/PluginCompatTesterHooks.java +++ b/plugins-compat-tester-model/src/main/java/org/jenkins/tools/test/model/hook/PluginCompatTesterHooks.java @@ -12,6 +12,7 @@ import java.util.Set; import java.util.stream.Collectors; import org.reflections.Reflections; +import org.reflections.scanners.SubTypesScanner; /** * Loads and executes hooks for modifying the state of Plugin Compatibility Tester at different @@ -106,7 +107,7 @@ private Map> findHooks(String stage) { // Search for all hooks defined within the given classpath prefix for(String prefix : hookPrefixes) { - Reflections reflections = new Reflections(prefix); + Reflections reflections = new Reflections(prefix, new SubTypesScanner()); Set> subTypes; // Find all steps for a given stage. Long due to casting