Fix conversion in gradle tasks