Search Gradle plugins

Using the plugins DSL:

plugins {
  id "firebase.test.lab" version "2.1.0"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org/m2/"
    }
  }
  dependencies {
    classpath "gradle.plugin.firebase.test.lab:plugin:2.1.0"
  }
}

apply plugin: "firebase.test.lab"

Using the plugins DSL:

plugins {
  id("firebase.test.lab") version "2.1.0"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url = uri("https://plugins.gradle.org/m2/")
    }
  }
  dependencies {
    classpath("gradle.plugin.firebase.test.lab:plugin:2.1.0")
  }
}

apply(plugin = "firebase.test.lab")

Learn how to apply plugins to subprojects