I'm writing a new CharsetProvider, and it requires that I have a file called java.nio.charset.spi.CharsetProvider in the META-INF/services directory. I have that in my src directory, but when I compile my project the META-INF directory isn't copied over to my classes directory. I've tried adding the name of the file to the compiler resource, but that didn't work. I tried adding META-INF to the resources. That didn't work.
How can I tell Intellij that I need this file copied to the classes directory?