title: How to set up a vanilla groovy project with main class executable via jar?
body: <p>I am getting very frustrated. I can't find a single, cohesive answer for my problem anywhere on the internet. Lots of documentation, nothing that brings it all together, though (that I can find).</p>
  
  <p>All I need is someone to tell me:</p>
  
  <ul>
  <li>how to set up a groovy project (EDIT: Including where to put source files, in what directories, directory structure, etc.)</li>
  <li>assuming I haven't build groovy before</li>
  <li>or java before (I have, but work with me)</li>
  <li>in a way that I can specify a dependency (this is my dependency --> <a href="https://github.com/bpsm/edn-java" rel="noreferrer">https://github.com/bpsm/edn-java</a>) so probably using maven or gradle</li>
  <li>one that has a main class and a main method (again, work with me)</li>
  <li>at the end of the build, I need a jar file that I can execute via <code>java -jar &lt;groovy-project&gt;.jar</code> which prints out "hello world"</li>
  </ul>
  
  <p>As simply as possible.</p>