So lately I've noticed people using `buildSrc` bui...
# gradle
n
So lately I've noticed people using
buildSrc
builds to declare plugin dependencies. What is the difference between declaring a dependency in the
dependencies
block of
buildSrc/build.gradle.kts
and doing it as
buildscript
or using the
plugins
block?
m
buildSrc dependencies override everything in other build scripts so if you use both, you might end up with conflicts
See https://github.com/gradle/gradle/issues/4741 for the details. Bottom line if you're using buildSrc and you start pulling dependencies there it's just safer to add all your plugins as well this way you limit potential conflicts
n
Gotcha. Thank you! This would actually clean up a lot of my gradle scripts quite nicely.