Build: Support mavenLocal flag in buildSrc (#23157)
Build: Support mavenLocal flag in buildSrc (#23157)

When configuring which repositories to pull from, we currently add
mavenLocal() when the `repos.mavenLocal` flag is set. However, this is
only done in normal projects, but not the special buildSrc project. This
change adds that support. Note that this was not possible before gradle
2.13, as there was a bug which prevented sys props from reaching the
buildSrc project (https://issues.gradle.org/browse/GRADLE-2475).
However, we already require 2.13+.
uschindler/elasticsearch,pozhidaevak/elasticsearch,MisterAndersen/elasticsearch,brandonkearby/elasticsearch,ThiagoGarciaAlves/elasticsearch,LeoYao/elasticsearch,rlugojr/elasticsearch,JSCooke/elasticsearch,gfyoung/elasticsearch,Stacey-Gammon/elasticsearch,rlugojr/elasticsearch,JSCooke/elasticsearch,nilabhsagar/elasticsearch,a2lin/elasticsearch,jprante/elasticsearch,masaruh/elasticsearch,qwerty4030/elasticsearch,sneivandt/elasticsearch,C-Bish/elasticsearch,wenpos/elasticsearch,maddin2016/elasticsearch,mikemccand/elasticsearch,robin13/elasticsearch,strapdata/elassandra,fred84/elasticsearch,strapdata/elassandra,mjason3/elasticsearch,LewayneNaidoo/elasticsearch,LewayneNaidoo/elasticsearch,vroyer/elassandra,nazarewk/elasticsearch,alexshadow007/elasticsearch,sneivandt/elasticsearch,geidies/elasticsearch,ZTE-PaaS/elasticsearch,robin13/elasticsearch,fernandozhu/elasticsearch,ThiagoGarciaAlves/elasticsearch,vroyer/elassandra,jimczi/elasticsearch,shreejay/elasticsearch,shreejay/elasticsearch,i-am-Nathan/elasticsearch,glefloch/elasticsearch,i-am-Nathan/elasticsearch,StefanGor/elasticsearch,HonzaKral/elasticsearch,naveenhooda2000/elasticsearch,StefanGor/elasticsearch,IanvsPoplicola/elasticsearch,Stacey-Gammon/elasticsearch,obourgain/elasticsearch,gfyoung/elasticsearch,rajanm/elasticsearch,njlawton/elasticsearch,gingerwizard/elasticsearch,umeshdangat/elasticsearch,JackyMai/elasticsearch,mjason3/elasticsearch,jimczi/elasticsearch,artnowo/elasticsearch,jimczi/elasticsearch,scottsom/elasticsearch,C-Bish/elasticsearch,LewayneNaidoo/elasticsearch,C-Bish/elasticsearch,nezirus/elasticsearch,JackyMai/elasticsearch,nilabhsagar/elasticsearch,JackyMai/elasticsearch,wenpos/elasticsearch,shreejay/elasticsearch,fernandozhu/elasticsearch,artnowo/elasticsearch,LewayneNaidoo/elasticsearch,geidies/elasticsearch,C-Bish/elasticsearch,markwalkom/elasticsearch,JackyMai/elasticsearch,gingerwizard/elasticsearch,coding0011/elasticsearch,umeshdangat/elasticsearch,coding0011/elasticsearch,winstonewert/elasticsearch,obourgain/elasticsearch,rajanm/elasticsearch,bawse/elasticsearch,Helen-Zhao/elasticsearch,winstonewert/elasticsearch,artnowo/elasticsearch,qwerty4030/elasticsearch,nknize/elasticsearch,nilabhsagar/elasticsearch,Helen-Zhao/elasticsearch,uschindler/elasticsearch,mortonsykes/elasticsearch,nknize/elasticsearch,Shepard1212/elasticsearch,LeoYao/elasticsearch,a2lin/elasticsearch,gfyoung/elasticsearch,Stacey-Gammon/elasticsearch,scorpionvicky/elasticsearch,vroyer/elasticassandra,Helen-Zhao/elasticsearch,uschindler/elasticsearch,maddin2016/elasticsearch,geidies/elasticsearch,IanvsPoplicola/elasticsearch,scorpionvicky/elasticsearch,glefloch/elasticsearch,strapdata/elassandra,mikemccand/elasticsearch,wangtuo/elasticsearch,mjason3/elasticsearch,GlenRSmith/elasticsearch,scorpionvicky/elasticsearch,mjason3/elasticsearch,umeshdangat/elasticsearch,scorpionvicky/elasticsearch,fernandozhu/elasticsearch,mortonsykes/elasticsearch,nilabhsagar/elasticsearch,fred84/elasticsearch,mohit/elasticsearch,markwalkom/elasticsearch,pozhidaevak/elasticsearch,LeoYao/elasticsearch,GlenRSmith/elasticsearch,naveenhooda2000/elasticsearch,ZTE-PaaS/elasticsearch,alexshadow007/elasticsearch,elasticdog/elasticsearch,s1monw/elasticsearch,nazarewk/elasticsearch,HonzaKral/elasticsearch,vroyer/elasticassandra,MisterAndersen/elasticsearch,artnowo/elasticsearch,scottsom/elasticsearch,bawse/elasticsearch,s1monw/elasticsearch,qwerty4030/elasticsearch,artnowo/elasticsearch,markwalkom/elasticsearch,gingerwizard/elasticsearch,maddin2016/elasticsearch,masaruh/elasticsearch,strapdata/elassandra,Helen-Zhao/elasticsearch,lks21c/elasticsearch,HonzaKral/elasticsearch,rajanm/elasticsearch,i-am-Nathan/elasticsearch,mohit/elasticsearch,scottsom/elasticsearch,maddin2016/elasticsearch,sneivandt/elasticsearch,robin13/elasticsearch,brandonkearby/elasticsearch,IanvsPoplicola/elasticsearch,Stacey-Gammon/elasticsearch,Shepard1212/elasticsearch,elasticdog/elasticsearch,JSCooke/elasticsearch,kalimatas/elasticsearch,s1monw/elasticsearch,LeoYao/elasticsearch,shreejay/elasticsearch,scottsom/elasticsearch,robin13/elasticsearch,lks21c/elasticsearch,nazarewk/elasticsearch,mortonsykes/elasticsearch,glefloch/elasticsearch,obourgain/elasticsearch,robin13/elasticsearch,masaruh/elasticsearch,shreejay/elasticsearch,nezirus/elasticsearch,glefloch/elasticsearch,mjason3/elasticsearch,jimczi/elasticsearch,jprante/elasticsearch,elasticdog/elasticsearch,rlugojr/elasticsearch,gingerwizard/elasticsearch,rajanm/elasticsearch,masaruh/elasticsearch,nazarewk/elasticsearch,winstonewert/elasticsearch,elasticdog/elasticsearch,lks21c/elasticsearch,ZTE-PaaS/elasticsearch,mohit/elasticsearch,wangtuo/elasticsearch,lks21c/elasticsearch,JSCooke/elasticsearch,StefanGor/elasticsearch,jimczi/elasticsearch,nknize/elasticsearch,s1monw/elasticsearch,pozhidaevak/elasticsearch,fred84/elasticsearch,gingerwizard/elasticsearch,gfyoung/elasticsearch,coding0011/elasticsearch,a2lin/elasticsearch,mikemccand/elasticsearch,C-Bish/elasticsearch,alexshadow007/elasticsearch,umeshdangat/elasticsearch,coding0011/elasticsearch,Helen-Zhao/elasticsearch,kalimatas/elasticsearch,nezirus/elasticsearch,nazarewk/elasticsearch,njlawton/elasticsearch,mohit/elasticsearch,i-am-Nathan/elasticsearch,ZTE-PaaS/elasticsearch,uschindler/elasticsearch,kalimatas/elasticsearch,MisterAndersen/elasticsearch,bawse/elasticsearch,umeshdangat/elasticsearch,maddin2016/elasticsearch,wenpos/elasticsearch,Stacey-Gammon/elasticsearch,njlawton/elasticsearch,bawse/elasticsearch,rajanm/elasticsearch,geidies/elasticsearch,naveenhooda2000/elasticsearch,wenpos/elasticsearch,StefanGor/elasticsearch,obourgain/elasticsearch,rlugojr/elasticsearch,vroyer/elassandra,HonzaKral/elasticsearch,nilabhsagar/elasticsearch,kalimatas/elasticsearch,brandonkearby/elasticsearch,qwerty4030/elasticsearch,IanvsPoplicola/elasticsearch,brandonkearby/elasticsearch,obourgain/elasticsearch,ZTE-PaaS/elasticsearch,markwalkom/elasticsearch,a2lin/elasticsearch,StefanGor/elasticsearch,scottsom/elasticsearch,wangtuo/elasticsearch,alexshadow007/elasticsearch,wenpos/elasticsearch,gingerwizard/elasticsearch,Shepard1212/elasticsearch,fred84/elasticsearch,fernandozhu/elasticsearch,strapdata/elassandra,s1monw/elasticsearch,MisterAndersen/elasticsearch,mikemccand/elasticsearch,rlugojr/elasticsearch,lks21c/elasticsearch,qwerty4030/elasticsearch,LewayneNaidoo/elasticsearch,nknize/elasticsearch,wangtuo/elasticsearch,nezirus/elasticsearch,pozhidaevak/elasticsearch,winstonewert/elasticsearch,bawse/elasticsearch,scorpionvicky/elasticsearch,geidies/elasticsearch,Shepard1212/elasticsearch,glefloch/elasticsearch,sneivandt/elasticsearch,naveenhooda2000/elasticsearch,LeoYao/elasticsearch,jprante/elasticsearch,fernandozhu/elasticsearch,gfyoung/elasticsearch,LeoYao/elasticsearch,ThiagoGarciaAlves/elasticsearch,GlenRSmith/elasticsearch,mikemccand/elasticsearch,IanvsPoplicola/elasticsearch,i-am-Nathan/elasticsearch,jprante/elasticsearch,winstonewert/elasticsearch,brandonkearby/elasticsearch,coding0011/elasticsearch,pozhidaevak/elasticsearch,masaruh/elasticsearch,elasticdog/elasticsearch,njlawton/elasticsearch,a2lin/elasticsearch,fred84/elasticsearch,markwalkom/elasticsearch,wangtuo/elasticsearch,mortonsykes/elasticsearch,jprante/elasticsearch,gingerwizard/elasticsearch,GlenRSmith/elasticsearch,rajanm/elasticsearch,alexshadow007/elasticsearch,vroyer/elasticassandra,njlawton/elasticsearch,geidies/elasticsearch,nezirus/elasticsearch,ThiagoGarciaAlves/elasticsearch,nknize/elasticsearch,MisterAndersen/elasticsearch,mortonsykes/elasticsearch,JSCooke/elasticsearch,kalimatas/elasticsearch,mohit/elasticsearch,naveenhooda2000/elasticsearch,ThiagoGarciaAlves/elasticsearch,Shepard1212/elasticsearch,JackyMai/elasticsearch,sneivandt/elasticsearch,LeoYao/elasticsearch,uschindler/elasticsearch,markwalkom/elasticsearch,GlenRSmith/elasticsearch,ThiagoGarciaAlves/elasticsearch