Search Gradle plugins

Using the plugins DSL:

plugins {
  id("ru.kode.android.build-publish") version "1.1.0-alpha19"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url = uri("https://plugins.gradle.org/m2/")
    }
  }
  dependencies {
    classpath("ru.kode.android:build-publish:1.1.0-alpha19")
  }
}

apply(plugin = "ru.kode.android.build-publish")

Using the plugins DSL:

plugins {
  id "ru.kode.android.build-publish" version "1.1.0-alpha19"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org/m2/"
    }
  }
  dependencies {
    classpath "ru.kode.android:build-publish:1.1.0-alpha19"
  }
}

apply plugin: "ru.kode.android.build-publish"

Learn how to apply plugins to subprojects