Made the configure on demand support buildSrc dir. In the long run we will stop supporting the projectsEvaluated for the configuration on demand mode (basically, we will rework the listeners so that they match the new model). However, I was hesitant to remove projectsEvaluated for COD because we use projectsEvaluated in few places in our codebase (most notably, the ide plugins). I'd rather COD work well with IDE plugins. If you support this change, I'll mention in the release notes for 1.5 that COD supports buildSrc.
Improvements in artifacts cache use for resolving artifact files. Wrapped the resolution of *all* files from a configuration in a useCache method. This way, we avoid redundant locking/unlocking per each resolved file. This should help in both cases: for local repositories and for remote ones.