In your sbt build file you can always do this:
"org.apache.spark" %% "spark-core" % versions('spark) withSources() withJavadoc(), "org.apache.spark" %% "spark-sql" % versions('spark) withSources() withJavadoc(),
versions('spark) is only the version of the spark that you are using.
M.Rez source share