To address this very problem, I have created spring-boot-starter-spark
It has latest of Spark version 3.5.3 and Spring boot version 3.4.0
In case you need different versions, you can checkout the source code on Github update the versions and build the starter jar.
Along with dependnecy descriptors it gives you customizable SparkSession auto-configurations and spring boot properties autocompletion assistance in IDEs.
I have also put a Demo Spark job implemented as Spring cloud task assing this starter.