Search Gradle plugins

Using the plugins DSL:

plugins {
  id "com.github.blindpirate.gogradle" version "0.11.4"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org/m2/"
    }
  }
  dependencies {
    classpath "gradle.plugin.com.github.blindpirate:gogradle:0.11.4"
  }
}

apply plugin: "com.github.blindpirate.gogradle"

Using the plugins DSL:

plugins {
  id("com.github.blindpirate.gogradle") version "0.11.4"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url = uri("https://plugins.gradle.org/m2/")
    }
  }
  dependencies {
    classpath("gradle.plugin.com.github.blindpirate:gogradle:0.11.4")
  }
}

apply(plugin = "com.github.blindpirate.gogradle")

Learn how to apply plugins to subprojects