Getting Emacs' compile-mode to play nice with Gradle

A workaround for a minor annoyance when working with Gradle via compile-mode