fix deprecation warning for gradle