Exporting a mod in a jar file

So, i want to export a mod that i made with IntelliJ IDEA but i don’t know how to. Can someone help me?

Nothing in your question suggest even a faint relation to Gradle.
If you have an actual Gradle question feel free to be more specific and maybe someone can help.
But that one line you wrote enables noone to help you with anything, especially anything Gradle related.