title: easy way to add jar dependencies to a scratch file in intelij
body: <p>I have created a scratch file <code>scratch.java</code></p>
  
  <p>I added a new plain java module that contains the following:</p>
  
  <p><a href="https://i.stack.imgur.com/q3W7J.png" rel="noreferrer"><img src="https://i.stack.imgur.com/q3W7J.png" alt="enter image description here"></a></p>
  
  <p>I have specified the dependency in the build configuration for the scratch file:</p>
  
  <p>The dependencies are not found when I try and edit and build the scratch file.<br>
  <strong>How can I easily add dependencies to a scratch file in intelij?</strong></p>
  
  <p><a href="https://i.stack.imgur.com/vQ5HW.png" rel="noreferrer"><img src="https://i.stack.imgur.com/vQ5HW.png" alt="enter image description here"></a></p>