RuntimeDependenciesProvider (DeprecatedDependencyResolver resolver) { Object configurationName = invokeMethod(mySourceSet, "getRuntimeConfigurationName"); assert configurationName != null; String runtimeConfigurationName = configurationName.toString(); Configuration runtimeClasspathConfiguration = myProject.getConfigurations().findByName(runtimeConfigurationName + "Classpath"); Configuration originRuntimeConfiguration = myProject.getConfigurations().findByName(runtimeConfigurationName); myConfiguration = runtimeClasspathConfiguration != null ? runtimeClasspathConfiguration : originRuntimeConfiguration; ExternalDepsResolutionResult externalDepsResolutionResult = resolver.resolveDependencies(myConfiguration, SCOPE); myDependencies = externalDepsResolutionResult.getExternalDeps(); myFiles = externalDepsResolutionResult.getResolvedFiles(); return this; }