My guess is that the JDK you use is too old and is not aware of the potential presence of module-info.class which should be ignored by JDK 8.
Can you try to upgrade your JDK to the latest JDK 8?