Search Gradle plugins

Using the plugins DSL:

plugins {
  id("com.matyrobbrt.mc.registrationutils") version "0.2.4"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url = uri("https://plugins.gradle.org/m2/")
    }
  }
  dependencies {
    classpath("com.matyrobbrt.mc.registrationutils:registrationutils:0.2.4")
  }
}

apply(plugin = "com.matyrobbrt.mc.registrationutils")

Using the plugins DSL:

plugins {
  id "com.matyrobbrt.mc.registrationutils" version "0.2.4"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org/m2/"
    }
  }
  dependencies {
    classpath "com.matyrobbrt.mc.registrationutils:registrationutils:0.2.4"
  }
}

apply plugin: "com.matyrobbrt.mc.registrationutils"

Learn how to apply plugins to subprojects