Search Gradle plugins

Using the plugins DSL:

plugins {
  id("de.flachnetz.golang-gradle-plugin") version "0.1.11"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url = uri("https://plugins.gradle.org/m2/")
    }
  }
  dependencies {
    classpath("de.flachnetz:golang-gradle-plugin:0.1.11")
  }
}

apply(plugin = "de.flachnetz.golang-gradle-plugin")

Using the plugins DSL:

plugins {
  id "de.flachnetz.golang-gradle-plugin" version "0.1.11"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org/m2/"
    }
  }
  dependencies {
    classpath "de.flachnetz:golang-gradle-plugin:0.1.11"
  }
}

apply plugin: "de.flachnetz.golang-gradle-plugin"

Learn how to apply plugins to subprojects