To add some initial support for Groovy on a fresh Geany installation one can copy /usr/share/geany/filetype_extensions.conf to ~/.config/geany folder and update Java line to be
/usr/share/geany/filetype_extensions.conf
~/.config/geany
Java=*.java;*.jsp;*.groovy;