Allprojects configuration closures not applied to buildSrc

(Terence Kent) #1

I’ve noticed that configuration closures defined using allprojects are not applied to the buildSrc project.

I ran into this because we have some audit-required configurations defined in a allprojects closure. I looked through the documentation and there doesn’t appear to be anything indicating that the behavior of the buildSrc project should be different in this case, but it does seems like a reasonable thing.

Can anyone confirm that this is what is supposed to happen?

(Peter Niederwieser) #2

‘buildSrc’ is a separate build (not project). It gets executed before the main build’s build scripts even get evaluated, and therefore isn’t affected by ‘allprojects’.

(Terence Kent) #3

Thanks for the clarification!