Is composite build / included build (e.g. `:build-...
# community-support
p
Is composite build / included build (e.g.
:build-logic
) still better alternative to
:buildSrc
?
v
It is "different". Whether it is "better" depends on subtle details. But if you ask me, I'd always prefer an included build over
buildSrc
unless I have a use-case that only works with
buildSrc
like monkey-patching some 3rd party plugin class.
p
I see. I'm finding out that
buildSrc
seems to add dependencies to classpath and often makes submodules more annoying to configure.
v
buildSrc
puts everything in a parent classloader of root build script and thus all build scripts, so the dependencies coming from
buildSrc
win over any dependencies plugins added by build scripts add to the classpath without any conflict resolution. This can be good in some situations or catastrophic in others. Plugins coming from an included build take part in normal build script classpath conflict resolution.
👍 1