You are here: Tools > Gradle Plugin for Genymotion > Including the plugin > Referencing the plugin

Referencing the plugin

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:

buildscript {
   repositories {
   dependencies {
      classpath 'com.genymotion:plugin:1.4'

To reference the plugin repository:

  1. Add the jcenter repository (where the plugin is hosted).
  2. 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.