[SPARK-12152][PROJECT-INFRA] Speed up Scalastyle checks by only invoking SBT once
[SPARK-12152][PROJECT-INFRA] Speed up Scalastyle checks by only invoking SBT once

Currently, `dev/scalastyle` invokes SBT four times, but these invocations can be replaced with a single invocation, saving about one minute of build time.

Author: Josh Rosen <joshrosen@databricks.com>

Closes #10151 from JoshRosen/speed-up-scalastyle.

techaddict/spark,chuckchen/spark,shaneknapp/spark,narahari92/spark,ddna1021/spark,darionyaphet/spark,wangyum/spark,Panos-Bletsos/spark-cost-model-optimizer,bdrillard/spark,narahari92/spark,sachintyagi22/spark,metamx/spark,huang1900/spark,SHASHANKB/spark,srowen/spark,jlopezmalla/spark,panfengfeng/spark,tengpeng/spark,zhouyejoe/spark,ibm-research-ireland/sparkoscope,kissmetrics/spark,jianran/spark,jrshust/spark,vinodkc/spark,maropu/spark,mzl9039/spark,shuangshuangwang/spark,kevinyu98/spark,panfengfeng/spark,kimoonkim/spark,ericvandenbergfb/spark,ptkool/spark,WindCanDie/spark,apache/spark,kevinyu98/spark,eyalfa/spark,bravo-zhang/spark,kiszk/spark,mike0sv/spark,bravo-zhang/spark,WeichenXu123/spark,apache/spark,Aegeaner/spark,xflin/spark,holdenk/spark,darionyaphet/spark,brad-kaiser/spark,rekhajoshm/spark,JerryLead/spark,ueshin/apache-spark,liyichao/spark,wangyum/spark,highfei2011/spark,ueshin/apache-spark,metamx/spark,ConeyLiu/spark,gengliangwang/spark,darionyaphet/spark,liyichao/spark,dongjoon-hyun/spark,wangmiao1981/spark,tengpeng/spark,akopich/spark,maropu/spark,poffuomo/spark,ioana-delaney/spark,jkbradley/spark,kiszk/spark,UndeadBaneGitHub/spark,wangmiao1981/spark,srowen/spark,WeichenXu123/spark,actuaryzhang/spark,ConeyLiu/spark,darionyaphet/spark,jianran/spark,taroplus/spark,holdenk/spark,cloud-fan/spark,debugger87/spark,jiangxb1987/spark,mzl9039/spark,ajaysaini725/spark,sahilTakiar/spark,cin/spark,maropu/spark,taroplus/spark,yanboliang/spark,ueshin/apache-spark,rednaxelafx/apache-spark,WindCanDie/spark,hhbyyh/spark,guoxiaolongzte/spark,jiangxb1987/spark,stanzhai/spark,holdenk/spark,caneGuy/spark,aray/spark,aray/spark,1haodian/spark,alunarbeach/spark,shubhamchopra/spark,caneGuy/spark,debugger87/spark,stanzhai/spark,shubhamchopra/spark,esi-mineset/spark,aray/spark,akopich/spark,bravo-zhang/spark,kiszk/spark,darionyaphet/spark,apache/spark,rednaxelafx/apache-spark,LantaoJin/spark,ioana-delaney/spark,facaiy/spark,mdespriee/spark,someorz/spark,ueshin/apache-spark,SHASHANKB/spark,wangmiao1981/spark,jrshust/spark,nlalevee/spark,tejasapatil/spark,ptkool/spark,brad-kaiser/spark,facaiy/spark,holdenk/spark,pgandhi999/spark,akopich/spark,ajaysaini725/spark,bravo-zhang/spark,BryanCutler/spark,hvanhovell/spark,mahak/spark,BryanCutler/spark,chuckchen/spark,milliman/spark,hhbyyh/spark,dbtsai/spark,byakuinss/spark,JerryLead/spark,Aegeaner/spark,nchammas/spark,akopich/spark,kiszk/spark,rekhajoshm/spark,JoshRosen/spark,szhem/spark,LantaoJin/spark,kimoonkim/spark,ueshin/apache-spark,jianran/spark,jkbradley/spark,shuangshuangwang/spark,HyukjinKwon/spark,aosagie/spark,apache-spark-on-k8s/spark,jiangxb1987/spark,jianran/spark,rezasafi/spark,MLnick/spark,JerryLead/spark,UndeadBaneGitHub/spark,joseph-torres/spark,cloud-fan/spark,liutang123/spark,eyalfa/spark,tejasapatil/spark,akopich/spark,metamx/spark,gengliangwang/spark,WindCanDie/spark,aosagie/spark,ron8hu/spark,mike0sv/spark,stanzhai/spark,zuotingbing/spark,highfei2011/spark,hhbyyh/spark,zzcclp/spark,MLnick/spark,nlalevee/spark,highfei2011/spark,eyalfa/spark,hhbyyh/spark,xuanyuanking/spark,LantaoJin/spark,jiangxb1987/spark,dhruve/spark,aray/spark,poffuomo/spark,patrick-nicholson/spark,zero323/spark,debugger87/spark,aokolnychyi/spark,WindCanDie/spark,cloud-fan/spark,dhruve/spark,zuotingbing/spark,lxsmnv/spark,dongjoon-hyun/spark,MLnick/spark,patrick-nicholson/spark,SnappyDataInc/spark,saturday-shi/spark,techaddict/spark,sahilTakiar/spark,apache/spark,ahnqirage/spark,guoxiaolongzte/spark,adrian-ionescu/apache-spark,tejasapatil/spark,WeichenXu123/spark,yanboliang/spark,dhruve/spark,aokolnychyi/spark,alunarbeach/spark,ibm-research-ireland/sparkoscope,bOOm-X/spark,jiangxb1987/spark,wzhfy/spark,maropu/spark,ajaysaini725/spark,apache/spark,wzhfy/spark,cin/spark,zhouyejoe/spark,lxsmnv/spark,adrian-ionescu/apache-spark,michalsenkyr/spark,saltstar/spark,Panos-Bletsos/spark-cost-model-optimizer,goldmedal/spark,cloud-fan/spark,kissmetrics/spark,shubhamchopra/spark,metamx/spark,srowen/spark,skonto/spark,chuckchen/spark,eyalfa/spark,BryanCutler/spark,poffuomo/spark,ioana-delaney/spark,hhbyyh/spark,srowen/spark,kiszk/spark,dbtsai/spark,1haodian/spark,patrick-nicholson/spark,panfengfeng/spark,wangyum/spark,WeichenXu123/spark,caneGuy/spark,kimoonkim/spark,wangmiao1981/spark,sachintyagi22/spark,big-pegasus/spark,narahari92/spark,andrewor14/spark,spark-test/spark,big-pegasus/spark,Aegeaner/spark,map222/spark,apache-spark-on-k8s/spark,narahari92/spark,adrian-ionescu/apache-spark,shaneknapp/spark,lvdongr/spark,aosagie/spark,brad-kaiser/spark,setjet/spark,jrshust/spark,ajaysaini725/spark,hvanhovell/spark,mzl9039/spark,ptkool/spark,chuckchen/spark,highfei2011/spark,wzhfy/spark,szhem/spark,panfengfeng/spark,ericvandenbergfb/spark,minixalpha/spark,zzcclp/spark,apache-spark-on-k8s/spark,dongjoon-hyun/spark,SHASHANKB/spark,mdespriee/spark,icexelloss/spark,goldmedal/spark,zhouyejoe/spark,janewangfb/spark,markhamstra/spark,SHASHANKB/spark,mdespriee/spark,WindCanDie/spark,map222/spark,Panos-Bletsos/spark-cost-model-optimizer,cin/spark,xuanyuanking/spark,jrshust/spark,WeichenXu123/spark,panfengfeng/spark,vinodkc/spark,alunarbeach/spark,aray/spark,jlopezmalla/spark,patrick-nicholson/spark,gioenn/xSpark,rezasafi/spark,map222/spark,adrian-ionescu/apache-spark,liutang123/spark,ron8hu/spark,ueshin/apache-spark,WeichenXu123/spark,actuaryzhang/spark,jkbradley/spark,wangyum/spark,apache-spark-on-k8s/spark,gioenn/xSpark,rekhajoshm/spark,WindCanDie/spark,jrshust/spark,dbtsai/spark,mdespriee/spark,saturday-shi/spark,ConeyLiu/spark,eyalfa/spark,taroplus/spark,cin/spark,shuangshuangwang/spark,zuotingbing/spark,zero323/spark,wangyum/spark,liutang123/spark,guoxiaolongzte/spark,rikima/spark,joseph-torres/spark,huang1900/spark,sureshthalamati/spark,zhouyejoe/spark,rikima/spark,dhruve/spark,janewangfb/spark,highfei2011/spark,minixalpha/spark,chuckchen/spark,joseph-torres/spark,mike0sv/spark,ioana-delaney/spark,joseph-torres/spark,minixalpha/spark,nilsgrabbert/spark,ConeyLiu/spark,zero323/spark,xuanyuanking/spark,skonto/spark,pgandhi999/spark,sahilTakiar/spark,bOOm-X/spark,shuangshuangwang/spark,techaddict/spark,yanboliang/spark,andrewor14/spark,kissmetrics/spark,liyichao/spark,debugger87/spark,caneGuy/spark,rekhajoshm/spark,actuaryzhang/spark,icexelloss/spark,dbtsai/spark,aosagie/spark,ahnqirage/spark,bOOm-X/spark,markhamstra/spark,HyukjinKwon/spark,kissmetrics/spark,SnappyDataInc/spark,ericvandenbergfb/spark,michalsenkyr/spark,bdrillard/spark,janewangfb/spark,xflin/spark,aosagie/spark,rezasafi/spark,Aegeaner/spark,kissmetrics/spark,liyichao/spark,minixalpha/spark,LantaoJin/spark,cloud-fan/spark,ioana-delaney/spark,dhruve/spark,stanzhai/spark,hvanhovell/spark,esi-mineset/spark,ioana-delaney/spark,SnappyDataInc/spark,mzl9039/spark,srowen/spark,WeichenXu123/spark,sahilTakiar/spark,ddna1021/spark,ron8hu/spark,tengpeng/spark,alunarbeach/spark,narahari92/spark,ajaysaini725/spark,saturday-shi/spark,MLnick/spark,techaddict/spark,esi-mineset/spark,huang1900/spark,ConeyLiu/spark,esi-mineset/spark,maropu/spark,big-pegasus/spark,xuanyuanking/spark,xuanyuanking/spark,aosagie/spark,tengpeng/spark,apache-spark-on-k8s/spark,liutang123/spark,joseph-torres/spark,nilsgrabbert/spark,rezasafi/spark,zzcclp/spark,srowen/spark,gengliangwang/spark,icexelloss/spark,zzcclp/spark,techaddict/spark,yanboliang/spark,loneknightpy/spark,MLnick/spark,JerryLead/spark,poffuomo/spark,SHASHANKB/spark,minixalpha/spark,byakuinss/spark,highfei2011/spark,ptkool/spark,someorz/spark,jrshust/spark,goldmedal/spark,bravo-zhang/spark,wangmiao1981/spark,andrewor14/spark,actuaryzhang/spark,tejasapatil/spark,esi-mineset/spark,skonto/spark,vinodkc/spark,LantaoJin/spark,zero323/spark,apache/spark,goldmedal/spark,kevinyu98/spark,maropu/spark,ajaysaini725/spark,minixalpha/spark,shaneknapp/spark,liutang123/spark,shuangshuangwang/spark,ahnqirage/spark,UndeadBaneGitHub/spark,markhamstra/spark,facaiy/spark,wangmiao1981/spark,loneknightpy/spark,dbtsai/spark,michalsenkyr/spark,pgandhi999/spark,nilsgrabbert/spark,liyichao/spark,alunarbeach/spark,ahnqirage/spark,szhem/spark,milliman/spark,debugger87/spark,bdrillard/spark,UndeadBaneGitHub/spark,actuaryzhang/spark,HyukjinKwon/spark,nchammas/spark,ibm-research-ireland/sparkoscope,skonto/spark,goldmedal/spark,loneknightpy/spark,shaneknapp/spark,icexelloss/spark,jiangxb1987/spark,saltstar/spark,szhem/spark,goldmedal/spark,nilsgrabbert/spark,big-pegasus/spark,loneknightpy/spark,zero323/spark,someorz/spark,HyukjinKwon/spark,wangyum/spark,zhouyejoe/spark,bOOm-X/spark,zzcclp/spark,lxsmnv/spark,BryanCutler/spark,highfei2011/spark,shaneknapp/spark,publicRoman/spark,kimoonkim/spark,map222/spark,bOOm-X/spark,JerryLead/spark,milliman/spark,aray/spark,nlalevee/spark,map222/spark,shuangshuangwang/spark,kimoonkim/spark,markhamstra/spark,spark-test/spark,map222/spark,nchammas/spark,byakuinss/spark,JoshRosen/spark,janewangfb/spark,szhem/spark,michalsenkyr/spark,rikima/spark,mahak/spark,stanzhai/spark,wangmiao1981/spark,SHASHANKB/spark,someorz/spark,zero323/spark,sachintyagi22/spark,andrewor14/spark,dhruve/spark,xflin/spark,michalsenkyr/spark,loneknightpy/spark,lvdongr/spark,rezasafi/spark,nlalevee/spark,liyichao/spark,rednaxelafx/apache-spark,facaiy/spark,ioana-delaney/spark,mzl9039/spark,JoshRosen/spark,andrewor14/spark,shubhamchopra/spark,ibm-research-ireland/sparkoscope,sachintyagi22/spark,wzhfy/spark,dbtsai/spark,zuotingbing/spark,szhem/spark,cin/spark,debugger87/spark,ericvandenbergfb/spark,saltstar/spark,tejasapatil/spark,loneknightpy/spark,publicRoman/spark,zzcclp/spark,vinodkc/spark,gioenn/xSpark,ron8hu/spark,bOOm-X/spark,sureshthalamati/spark,caneGuy/spark,UndeadBaneGitHub/spark,wzhfy/spark,milliman/spark,liutang123/spark,pgandhi999/spark,zhouyejoe/spark,tejasapatil/spark,mzl9039/spark,eyalfa/spark,ptkool/spark,tengpeng/spark,gengliangwang/spark,zzcclp/spark,spark-test/spark,icexelloss/spark,esi-mineset/spark,alunarbeach/spark,jlopezmalla/spark,shubhamchopra/spark,ptkool/spark,witgo/spark,WindCanDie/spark,rezasafi/spark,brad-kaiser/spark,spark-test/spark,hvanhovell/spark,techaddict/spark,ericvandenbergfb/spark,aokolnychyi/spark,ConeyLiu/spark,Panos-Bletsos/spark-cost-model-optimizer,zuotingbing/spark,HyukjinKwon/spark,chuckchen/spark,patrick-nicholson/spark,dongjoon-hyun/spark,yanboliang/spark,stanzhai/spark,JerryLead/spark,sureshthalamati/spark,narahari92/spark,mdespriee/spark,kissmetrics/spark,nchammas/spark,facaiy/spark,ddna1021/spark,1haodian/spark,goldmedal/spark,sachintyagi22/spark,zero323/spark,rekhajoshm/spark,ibm-research-ireland/sparkoscope,SnappyDataInc/spark,LantaoJin/spark,nchammas/spark,kevinyu98/spark,aokolnychyi/spark,vinodkc/spark,rednaxelafx/apache-spark,panfengfeng/spark,minixalpha/spark,markhamstra/spark,zhouyejoe/spark,dbtsai/spark,setjet/spark,BryanCutler/spark,kissmetrics/spark,ddna1021/spark,sahilTakiar/spark,hvanhovell/spark,metamx/spark,guoxiaolongzte/spark,nlalevee/spark,shaneknapp/spark,1haodian/spark,sahilTakiar/spark,kevinyu98/spark,techaddict/spark,JoshRosen/spark,andrewor14/spark,publicRoman/spark,facaiy/spark,zuotingbing/spark,JerryLead/spark,map222/spark,ibm-research-ireland/sparkoscope,sachintyagi22/spark,guoxiaolongzte/spark,kimoonkim/spark,matthewfranglen/spark,jlopezmalla/spark,Aegeaner/spark,rednaxelafx/apache-spark,rezasafi/spark,pgandhi999/spark,LantaoJin/spark,hvanhovell/spark,gioenn/xSpark,joseph-torres/spark,narahari92/spark,skonto/spark,jlopezmalla/spark,nchammas/spark,michalsenkyr/spark,rekhajoshm/spark,yanboliang/spark,mike0sv/spark,taroplus/spark,witgo/spark,xflin/spark,lxsmnv/spark,brad-kaiser/spark,bdrillard/spark,xflin/spark,xflin/spark,MLnick/spark,publicRoman/spark,pgandhi999/spark,saltstar/spark,HyukjinKwon/spark,sureshthalamati/spark,big-pegasus/spark,actuaryzhang/spark,adrian-ionescu/apache-spark,jianran/spark,michalsenkyr/spark,gioenn/xSpark,BryanCutler/spark,gengliangwang/spark,ddna1021/spark,nlalevee/spark,cloud-fan/spark,saturday-shi/spark,someorz/spark,publicRoman/spark,ahnqirage/spark,sachintyagi22/spark,taroplus/spark,1haodian/spark,joseph-torres/spark,setjet/spark,ahnqirage/spark,tejasapatil/spark,liutang123/spark,apache/spark,witgo/spark,JoshRosen/spark,wzhfy/spark,mahak/spark,patrick-nicholson/spark,byakuinss/spark,HyukjinKwon/spark,liyichao/spark,Panos-Bletsos/spark-cost-model-optimizer,byakuinss/spark,nlalevee/spark,tengpeng/spark,yanboliang/spark,jiangxb1987/spark,saltstar/spark,eyalfa/spark,andrewor14/spark,loneknightpy/spark,saturday-shi/spark,setjet/spark,jianran/spark,SnappyDataInc/spark,adrian-ionescu/apache-spark,witgo/spark,aokolnychyi/spark,someorz/spark,mike0sv/spark,aokolnychyi/spark,setjet/spark,ConeyLiu/spark,mdespriee/spark,wangyum/spark,Aegeaner/spark,SHASHANKB/spark,lxsmnv/spark,dongjoon-hyun/spark,sureshthalamati/spark,1haodian/spark,publicRoman/spark,ron8hu/spark,ericvandenbergfb/spark,apache-spark-on-k8s/spark,nilsgrabbert/spark,mahak/spark,spark-test/spark,mike0sv/spark,akopich/spark,jkbradley/spark,metamx/spark,kimoonkim/spark,xuanyuanking/spark,saltstar/spark,maropu/spark,shaneknapp/spark,ueshin/apache-spark,aosagie/spark,vinodkc/spark,saturday-shi/spark,SnappyDataInc/spark,Aegeaner/spark,rednaxelafx/apache-spark,setjet/spark,xuanyuanking/spark,caneGuy/spark,darionyaphet/spark,JoshRosen/spark,pgandhi999/spark,janewangfb/spark,janewangfb/spark,gengliangwang/spark,janewangfb/spark,lvdongr/spark,shubhamchopra/spark,ibm-research-ireland/sparkoscope,nchammas/spark,nilsgrabbert/spark,skonto/spark,skonto/spark,brad-kaiser/spark,guoxiaolongzte/spark,gioenn/xSpark,bravo-zhang/spark,rikima/spark,akopich/spark,jkbradley/spark,taroplus/spark,aray/spark,setjet/spark,panfengfeng/spark,ddna1021/spark,icexelloss/spark,tengpeng/spark,cin/spark,holdenk/spark,kevinyu98/spark,witgo/spark,sahilTakiar/spark,big-pegasus/spark,brad-kaiser/spark,rikima/spark,ron8hu/spark,BryanCutler/spark,szhem/spark,xflin/spark,cloud-fan/spark,bravo-zhang/spark,UndeadBaneGitHub/spark,jkbradley/spark,Panos-Bletsos/spark-cost-model-optimizer,darionyaphet/spark,chuckchen/spark,lvdongr/spark,byakuinss/spark,nilsgrabbert/spark,dongjoon-hyun/spark,jkbradley/spark,taroplus/spark,debugger87/spark,apache-spark-on-k8s/spark,MLnick/spark,poffuomo/spark,shuangshuangwang/spark,ericvandenbergfb/spark,lvdongr/spark,dhruve/spark,jrshust/spark,mahak/spark,alunarbeach/spark,UndeadBaneGitHub/spark,spark-test/spark,witgo/spark,Panos-Bletsos/spark-cost-model-optimizer,ahnqirage/spark,huang1900/spark,bOOm-X/spark,rikima/spark,bdrillard/spark,ron8hu/spark,gengliangwang/spark,huang1900/spark,poffuomo/spark,patrick-nicholson/spark,bdrillard/spark,SnappyDataInc/spark,lvdongr/spark,kiszk/spark,lvdongr/spark,mzl9039/spark,actuaryzhang/spark,rednaxelafx/apache-spark,saltstar/spark,vinodkc/spark,spark-test/spark,mdespriee/spark,metamx/spark,ajaysaini725/spark,ddna1021/spark,hhbyyh/spark,zuotingbing/spark,witgo/spark,big-pegasus/spark,adrian-ionescu/apache-spark,milliman/spark,guoxiaolongzte/spark,publicRoman/spark,gioenn/xSpark,aokolnychyi/spark,stanzhai/spark,rekhajoshm/spark,shubhamchopra/spark,icexelloss/spark,ptkool/spark,huang1900/spark,kiszk/spark,hvanhovell/spark,1haodian/spark,markhamstra/spark,poffuomo/spark,facaiy/spark,mahak/spark,jlopezmalla/spark,milliman/spark,JoshRosen/spark,bdrillard/spark,mahak/spark,esi-mineset/spark,someorz/spark,huang1900/spark,jlopezmalla/spark,dongjoon-hyun/spark,kevinyu98/spark,lxsmnv/spark,caneGuy/spark,byakuinss/spark,holdenk/spark,hhbyyh/spark,milliman/spark,srowen/spark,wzhfy/spark,lxsmnv/spark,rikima/spark,jianran/spark,sureshthalamati/spark,holdenk/spark,markhamstra/spark,cin/spark,sureshthalamati/spark,saturday-shi/spark,mike0sv/spark