Search Gradle plugins

Using the plugins DSL:

plugins {
  id("com.matyrobbrt.mc.registrationutils") version "1.21.0-0.2.1"
}

Using legacy plugin application:

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

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

Using the plugins DSL:

plugins {
  id "com.matyrobbrt.mc.registrationutils" version "1.21.0-0.2.1"
}

Using legacy plugin application:

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

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

Learn how to apply plugins to subprojects