Looks as though I have stumbled on a bug where the dependencies for the first JVM module are applied, but not for the second one. IntelliJ is providing the option to include a library from classpath in the second JVM module, which the IDE shouldn't be doing with a platform module.