title: How to export all the dependency jar in one dependency jar in Intellij IDEA ide?
body: <p>I am writting a Spark-shell script and for some reason I have been told to not provide the code in a jar form rather than just a plain spark scala shell script.</p>
  
  <p>My application would focuses on reading kafka streams to spark. But since Kafka stream is not part of the spark, I would need to supply the kafka stream dependency jar while submitting to spark-submit.</p>
  
  <p>I have written the Spark script in IntellijIDEA IDE. I am also having some other dependencies which are visible under the "external Libraries" section of the IDE.</p>
  
  <p>Now how can I create a single dependency jar out of the "external libraries" so that I can supply it while submitting my spark script?</p>