Create a JAR artifact for the project you want to add as a dependency. You can do this using IntelliJ's Build Artifact tool or with Maven package. Then, in the other project (where you want to add the dependency), go to: File -> Project Structure -> Modules -> your_module -> Dependencies Tab -> Click (+) Button and add JAR Dependency.