Search Gradle plugins

Using the plugins DSL:

plugins {
  id("com.github.triplet.play") version "2.5.0"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url = uri("https://plugins.gradle.org/m2/")
    }
  }
  dependencies {
    classpath("com.github.triplet.gradle:play-publisher:2.5.0")
  }
}

apply(plugin = "com.github.triplet.play")

Using the plugins DSL:

plugins {
  id "com.github.triplet.play" version "2.5.0"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org/m2/"
    }
  }
  dependencies {
    classpath "com.github.triplet.gradle:play-publisher:2.5.0"
  }
}

apply plugin: "com.github.triplet.play"

Learn how to apply plugins to subprojects