grails 2.5 clears screen and returns to prompt

I have grails 2.5 installed on macOS via homebrew. I linked it manually as grails2 since I also have grails 3 installed and linked as grails. When I run any grails2 command in the terminal, it clears the screen and exits with status 1.

I have seen this reported to be caused by a missing JAVA_HOME, but I have tried with JAVA_HOME set to a valid 1.8, 1.7, and 1.6 JDK. Grails 3.3.2 works fine on the 1.7 and 1.8 JDKs.