Search Gradle plugins

Using the plugins DSL:

plugins {
  id("pub.ihub.plugin.ihub-java") version "1.5.4-m1"
}

Using legacy plugin application:

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

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

Using the plugins DSL:

plugins {
  id "pub.ihub.plugin.ihub-java" version "1.5.4-m1"
}

Using legacy plugin application:

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

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

Learn how to apply plugins to subprojects