@@ -394,13 +394,15 @@ protected void doApply(Plugin.Engine.Source source, Plugin.Engine.Target target)
394394 * Dispatches a Byte Buddy instrumentation Gradle task.
395395 *
396396 * @param logger The logger to use.
397+ * @param rootLoader The class loader that is used for searching types and applying plugins.
397398 * @param transformations The transformations to apply.
398399 * @param discovery The discovery for plugins to use.
399400 * @param rootLocator The root class file locator.
400- * @param artifacts The artifacts to include
401+ * @param artifacts The artifacts to include.
402+ * @param discoverySet The source set to discover plugins from or {@code null} if no source set is used.
401403 * @param entryPoint The entry point to use.
402404 * @param classFileVersion The class file version to use.
403- * @param rootLocationResolver A argument resolver for the root location of this build.
405+ * @param rootLocationResolver An argument resolver for the root location of this build.
404406 * @param suffix The suffix to use for rebased methods or an empty string for using a random suffix.
405407 * @param threads The number of threads to use while instrumenting.
406408 * @param extendedParsing {@code true} if extended parsing should be used.
@@ -417,7 +419,7 @@ public static void apply(Logger logger,
417419 Discovery discovery ,
418420 ClassFileLocator rootLocator ,
419421 Iterable <File > artifacts ,
420- @ MaybeNull Iterable <File > discoveries ,
422+ @ MaybeNull Iterable <File > discoverySet ,
421423 EntryPoint entryPoint ,
422424 ClassFileVersion classFileVersion ,
423425 Plugin .Factory .UsingReflection .ArgumentResolver rootLocationResolver ,
@@ -430,7 +432,7 @@ public static void apply(Logger logger,
430432 Plugin .Engine .Source source ,
431433 Plugin .Engine .Target target ) throws IOException {
432434 Plugin .Engine .Summary summary ;
433- ClassLoader classLoader = ByteBuddySkippingUrlClassLoader .of (rootLoader , discoveries );
435+ ClassLoader classLoader = ByteBuddySkippingUrlClassLoader .of (rootLoader , discoverySet );
434436 try {
435437 if (discovery .isDiscover (transformations )) {
436438 Set <String > undiscoverable = new HashSet <String >();
0 commit comments