Search Gradle plugins

Using the plugins DSL:

plugins {
  id("pub.ihub.plugin.ihub-groovy") version "1.4.0-m2"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url = uri("https://plugins.gradle.org/m2/")
    }
  }
  dependencies {
    classpath("pub.ihub.plugin:ihub-groovy:1.4.0-m2")
  }
}

apply(plugin = "pub.ihub.plugin.ihub-groovy")

Using the plugins DSL:

plugins {
  id "pub.ihub.plugin.ihub-groovy" version "1.4.0-m2"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org/m2/"
    }
  }
  dependencies {
    classpath "pub.ihub.plugin:ihub-groovy:1.4.0-m2"
  }
}

apply plugin: "pub.ihub.plugin.ihub-groovy"

Learn how to apply plugins to subprojects