You should use plugins always when it's possible and get rid of buildscript block prior to plugins dsl. It's more effective and recommended way. The only problem, that not all plugins published to Gradle Plugins Portal (it's possible to use other plugins, but requires additional configuration in settings.gradle)