Update Gradle configuration.
Fix build warning.