Search Gradle plugins

Using the plugins DSL:

plugins {
  id("com.betomorrow.appcenter") version "2.0.4"
}

Using legacy plugin application:

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

apply(plugin = "com.betomorrow.appcenter")

Using the plugins DSL:

plugins {
  id "com.betomorrow.appcenter" version "2.0.4"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org/m2/"
    }
  }
  dependencies {
    classpath "gradle.plugin.com.betomorrow.gradle:appcenter-plugin:2.0.4"
  }
}

apply plugin: "com.betomorrow.appcenter"

Learn how to apply plugins to subprojects