Search Gradle plugins

Using the plugins DSL:

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

Using legacy plugin application:

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

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

Using the plugins DSL:

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

Using legacy plugin application:

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

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

Learn how to apply plugins to subprojects