So I've got a small Javafx application that I wrote in Java 8 and converted to Java 10 just a few days ago. When I build using Gradle and run from the command line, just using java -jar, it works fine. When running from inside Intellij, it fails to load fxml files for dialogs. These files are stored in the top level of the src/main/resources, and the location and the code that loads them hasn't changed. I have added a module-info.java to the root of my Java source directory (src/main/java), and that resolves all the errors that Intellij gives me about having to require and export modules. If I get rid of the modules-info.java, then the app works - but then Intellij complains about not having the appropriate requires and exports.
As you might guess, I am new to Java 10, so I'm definitely not an expert in the module system. But it builds and works from the command-line, so it seems like this is an Intellij issue. Any ideas about what I'm missing or doing wrong would be greatly appreciated.