Use create method instead of add to avoid deprecation warnings on latest Gradle versions