Use gradle to replace version