Ruby Plugin changes SDK to Ruby based on .rvmrc, for a Java Module

I've got a Maven project which mostly contains Java code, but has some Ruby scripts in it as well. The Ruby scripts are in bin, and the Java code is in src. In the root directory, I've got pom.xml and .rvmrc. I've set the module SDK to be my project JDK, but every time I start IntelliJ it changes my module's SDK from my project JDK to the Ruby SDK. As a result, my Java files fail to compile.

How can I prevent this from happening?

Please sign in to leave a comment.