I personally use Maven due to habbit. So here is the instructions on how to setup the first stage of the maven project.
After that in your project you will find pom.xml
Open that in a basic view (or what ever its called in intelij).
After that insert the following line just before the close tag.
After that save the file and refresh the project. And sponge api will be added to your project. Done