Eventually, when you're ready to release a version of your code to production, you'll need a .jar file to distribute. Intellij makes building JARs quite easy.
First, navigate to File -> Project Structure and click on Artifacts:
Click on the + button, and select JAR -> From modules with dep...