I have a Java project in Intellij and there is a 'data' directory which hosts lots of JSON files. My Intellij has to takes a very long time to index them before I can work on the project. The reason I want to put this data directory in the project is for me to use relative path to access them. I am thinking to move this data/ directory out of the project, however that will block my project to directly access them, i.e. I have to use absolute path on a machine to read and write files to the data directory.
What's the right way to handle this situation?