Search Gradle plugins

Using the plugins DSL:

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

Using legacy plugin application:

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

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

Using the plugins DSL:

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

Using legacy plugin application:

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

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

Learn how to apply plugins to subprojects