To use the Gradle plugin, you first need to reference its repository in the
buildscript block of the
build.gradle file. The file should look like:
To reference the plugin repository:
- Add the
jcenterrepository (where the plugin is hosted).
- Declare the repository as a build dependency.
‘1.4’ corresponds to the latest version of the plugin. You can get the list of all releases on the Bintray page.