I am using the very latest Intellij IDEA Community EAP, Kotlin 1.2 beta 31, Gradle 4.2, and Java 9. I have a Kotlin JVM project.
With Java 9 as a project JDK, running/building the project fails (at least occasionally): I get unresolved references to my own classes, which are defined in the very same project. I believe these classes are 100% Kotlin objects / singletons. I also receive zero unresolved reference errors in the IDE itself, only upon building.
The only thing that seems to help, is to rebuild the whole project. Anyone else encountered this same thing? Is there a workaround - other than not using Java 9?