Search Gradle plugins

Using the plugins DSL:

plugins {
  id("dev.mythicdrops.gradle.convention.maven-publish") version "9.0.0"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url = uri("https://plugins.gradle.org/m2/")
    }
  }
  dependencies {
    classpath("dev.mythicdrops:mythicdrops-gradle-plugin:9.0.0")
  }
}

apply(plugin = "dev.mythicdrops.gradle.convention.maven-publish")

Using the plugins DSL:

plugins {
  id "dev.mythicdrops.gradle.convention.maven-publish" version "9.0.0"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org/m2/"
    }
  }
  dependencies {
    classpath "dev.mythicdrops:mythicdrops-gradle-plugin:9.0.0"
  }
}

apply plugin: "dev.mythicdrops.gradle.convention.maven-publish"

Learn how to apply plugins to subprojects