Dynamic BuildScripts dependencies

In maven you are allowed to have different maven plugin on execution based on profile, how to you do this with gradle?

Basically I want different gradle plugin and build scripts dependencies based on certain condition. This build scripts dependencies are only there on certain build machine and usually not there on regular developer machine, So adding the dependencies in the build.gradle just result in class not found error.

Thanks

It’s basically explained in the article “Gradle’s Support for Maven POM Profiles” (see the section “Implementing build-time profiles in Gradle projects”).