Build image and warning in gradle