Work around crash in gradle plugin