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


(Etienne Studer) #1

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


(Peter Niederwieser) #2

Should work just the same for ‘buildscript’.


(Etienne Studer) #3

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