Search Gradle plugins

Using the plugins DSL:

plugins {
  id "com.cognifide.common.runtime" version "0.1.29"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org/m2/"
    }
  }
  dependencies {
    classpath "com.cognifide.gradle:common-plugin:0.1.29"
  }
}

apply plugin: "com.cognifide.common.runtime"

Using the plugins DSL:

plugins {
  id("com.cognifide.common.runtime") version "0.1.29"
}

Using legacy plugin application:

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

apply(plugin = "com.cognifide.common.runtime")

Learn how to apply plugins to subprojects