Enforce a plugin's dependency in a 'buildscript' block

Hi

Gradle allows me to enforce a certain version of a dependency through configuration of resolutionStrategy/forcedModules. Is this also possible in a ‘buildscript’ block?

If it is not possible, is there any other way to achieve the desired behavior?

Use case: I use a plugin, and that plugin depends on a library with version 1.0.0. I would like to use that plugin but have it run with version 1.0.1 of the library dependency.

Thanks and regards, Etienne

Should work just the same for ‘buildscript’.

Excellent. I did not expect that this would already be possible. I tried it out and it worked very smoothly. Thanks, Peter.