This message was deleted.
# dependency-management
s
This message was deleted.
v
You probably would need to do that in the
buildscript
block. But actually
resolutionStrategy.force
is anyway a very heavy hammer that you should most often avoid to use.
s
I haven’t used buildscript for years. Wasn’t there a major push to replace buildscript with plugins and pluginManagement block?
v
Yes, but if you want to use resolution strategy, you would still need to do it there. Or you use a
buildSrc
build and do the forced resolution there, then you can spare the
buildscript
usage.
s
Thank you for pointers! That works when I add buildscript to the project. But not when I add it to root project. I guess there is no central place I can add buildscript resolution strategy and have to add buildscript block to each project/build.gradle file 😞
v
buildSrc
🙂