check if file is a groovy file, give warning if not the case