Quantcast
Channel: Gradle Forums - Latest posts
Viewing all articles
Browse latest Browse all 19888

Defining Consumer from Groovy build.gradle

$
0
0
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!! :slight_smile:


Viewing all articles
Browse latest Browse all 19888

Trending Articles