Search Gradle plugins

Using the plugins DSL:

plugins {
  id("com.emergetools.android") version "2.0.0-beta01"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url = uri("https://plugins.gradle.org/m2/")
    }
  }
  dependencies {
    classpath("com.emergetools:plugin:2.0.0-beta01")
  }
}

apply(plugin = "com.emergetools.android")

Using the plugins DSL:

plugins {
  id "com.emergetools.android" version "2.0.0-beta01"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org/m2/"
    }
  }
  dependencies {
    classpath "com.emergetools:plugin:2.0.0-beta01"
  }
}

apply plugin: "com.emergetools.android"

Learn how to apply plugins to subprojects