Enabling transitive dependencies only for certain tasks

We have, for complex reasons, disabled all transitive dependencies in our massive project build. This is causing problems when I try to use a third-party plugin that depends on other third-party jars. How would I enable transitive runtime dependencies for that plugin’s tasks, and not everything?

Transitive dependency resolution can be enabled/disabled per configuration, but not per task (dependencies aren’t intrinsically associated with tasks). If you disabled transitive dependency resolution for all configurations, try to only disable it for compile/runtime/testCompile/testRuntime.