How to add resource file to JAR in IntelliJ
- Create a folder called "resources" at the same level as "src"
- Right click the folder, select "Mark Directory As -> Resources Root"
- Make new directory with name as "resources" under your project root directory.
- Right click on that directory and select "Mark Directory As" ==>"Resources Root" option.