Search Gradle plugins

Using the plugins DSL:

plugins {
  id("ru.kode.android.build-publish") version "1.0.5-hotfix01"
}

Using legacy plugin application:

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

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

Using the plugins DSL:

plugins {
  id "ru.kode.android.build-publish" version "1.0.5-hotfix01"
}

Using legacy plugin application:

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

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

Learn how to apply plugins to subprojects