Another Gradle/IntelliJ screwup

This change fixes a bug introduced because Gradle and IntelliJ don't
play nicely together.