In build.gradle, some statements correspond to the method of a domain.
For example,
version = 0.01 corresponds to project.setVersion(0.01)
dependencies{}
corresponds to closure delegation to project’s DependencyHandler
But what does “ext{ property = value}” correspond to?
and how about the question below?
sourceSets{ corresponds to closure deletation to SourceSetContainer
main{ corresponds to what?
java{ corresponds to closure delegation to SourceDirectorySet
I am quite new to Gradle, and maybe the quesiton is quite simple for some experts.
I think these two posts will clear a lot of your confusion (you may want to start with the second one). I’ll happily answer any questions you might have (if I can)