project.files(profileDirectory).filter { include '*.gradle' }.each { fragment ->
project.apply(from: fragment, to: databases.profiles)
}
Ah, this was the piece I was missing - the to:
.
I actually made all of the changes related to using NamedDomainObjectContainer
for collecting the profiles and it worked like a champ. The part that I was missing was that you can Project#apply
to something (other than the project). I’ll look at that next.
Thanks again!!