[SPARK-34915][INFRA] Cache Maven, SBT and Scala in all jobs that use them
[SPARK-34915][INFRA] Cache Maven, SBT and Scala in all jobs that use them

### What changes were proposed in this pull request?

This PR proposes to cache Maven, SBT and Scala in all jobs that use them. For simplicity, we use the same key `build-` and just cache all SBT, Maven and Scala. The cache is not very large.

### Why are the changes needed?

To speed up the build.

### Does this PR introduce _any_ user-facing change?

No, dev-only.

### How was this patch tested?

It will be tested in this PR's GA jobs.

Closes #32011 from HyukjinKwon/SPARK-34915.

Authored-by: HyukjinKwon <2680965ad5aae29275c8fb10150cb10f5554e78b@apache.org>
Signed-off-by: Gengliang Wang <59f23ce21e834878dfd6cdde790f2fdea84f2c38@gmail.com>

nchammas/spark,witgo/spark,jiangxb1987/spark,chuckchen/spark,srowen/spark,vinodkc/spark,cloud-fan/spark,mahak/spark,jiangxb1987/spark,taroplus/spark,mahak/spark,dongjoon-hyun/spark,wangmiao1981/spark,jiangxb1987/spark,shaneknapp/spark,apache/spark,wangyum/spark,BryanCutler/spark,wangyum/spark,zzcclp/spark,milliman/spark,shaneknapp/spark,HyukjinKwon/spark,taroplus/spark,chuckchen/spark,cloud-fan/spark,xuanyuanking/spark,shaneknapp/spark,gengliangwang/spark,apache/spark,rednaxelafx/apache-spark,BryanCutler/spark,srowen/spark,maropu/spark,srowen/spark,hvanhovell/spark,maropu/spark,WeichenXu123/spark,HyukjinKwon/spark,chuckchen/spark,BryanCutler/spark,zzcclp/spark,nchammas/spark,hvanhovell/spark,zero323/spark,ueshin/apache-spark,BryanCutler/spark,holdenk/spark,srowen/spark,cloud-fan/spark,JoshRosen/spark,zero323/spark,mahak/spark,wangyum/spark,ueshin/apache-spark,ueshin/apache-spark,chuckchen/spark,zero323/spark,hvanhovell/spark,mahak/spark,jiangxb1987/spark,cloud-fan/spark,vinodkc/spark,dongjoon-hyun/spark,WeichenXu123/spark,witgo/spark,gengliangwang/spark,milliman/spark,chuckchen/spark,mahak/spark,maropu/spark,wangyum/spark,wangyum/spark,BryanCutler/spark,shaneknapp/spark,vinodkc/spark,zero323/spark,nchammas/spark,xuanyuanking/spark,JoshRosen/spark,dongjoon-hyun/spark,holdenk/spark,chuckchen/spark,zzcclp/spark,wangmiao1981/spark,BryanCutler/spark,milliman/spark,jiangxb1987/spark,hvanhovell/spark,nchammas/spark,gengliangwang/spark,ueshin/apache-spark,HyukjinKwon/spark,jiangxb1987/spark,mahak/spark,srowen/spark,maropu/spark,ueshin/apache-spark,taroplus/spark,dongjoon-hyun/spark,vinodkc/spark,gengliangwang/spark,holdenk/spark,xuanyuanking/spark,gengliangwang/spark,wangyum/spark,chuckchen/spark,rednaxelafx/apache-spark,JoshRosen/spark,gengliangwang/spark,JoshRosen/spark,taroplus/spark,rednaxelafx/apache-spark,maropu/spark,milliman/spark,holdenk/spark,shaneknapp/spark,BryanCutler/spark,taroplus/spark,HyukjinKwon/spark,hvanhovell/spark,xuanyuanking/spark,rednaxelafx/apache-spark,apache/spark,holdenk/spark,vinodkc/spark,vinodkc/spark,hvanhovell/spark,apache/spark,wangmiao1981/spark,witgo/spark,ueshin/apache-spark,zzcclp/spark,wangmiao1981/spark,dongjoon-hyun/spark,zzcclp/spark,wangmiao1981/spark,WeichenXu123/spark,milliman/spark,apache/spark,cloud-fan/spark,nchammas/spark,maropu/spark,taroplus/spark,milliman/spark,witgo/spark,HyukjinKwon/spark,ueshin/apache-spark,dongjoon-hyun/spark,JoshRosen/spark,jiangxb1987/spark,rednaxelafx/apache-spark,nchammas/spark,witgo/spark,cloud-fan/spark,HyukjinKwon/spark,wangmiao1981/spark,taroplus/spark,WeichenXu123/spark,holdenk/spark,WeichenXu123/spark,shaneknapp/spark,srowen/spark,witgo/spark,xuanyuanking/spark,WeichenXu123/spark,zero323/spark,cloud-fan/spark,xuanyuanking/spark,JoshRosen/spark,witgo/spark,nchammas/spark,zero323/spark,wangyum/spark,WeichenXu123/spark,xuanyuanking/spark,zzcclp/spark,HyukjinKwon/spark,holdenk/spark,zzcclp/spark,hvanhovell/spark,JoshRosen/spark,wangmiao1981/spark,milliman/spark,dongjoon-hyun/spark,apache/spark,maropu/spark,rednaxelafx/apache-spark,mahak/spark,vinodkc/spark,rednaxelafx/apache-spark,apache/spark,shaneknapp/spark,zero323/spark,srowen/spark,gengliangwang/spark