Search Gradle plugins

Using the plugins DSL:

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

Using legacy plugin application:

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

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

Using the plugins DSL:

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

Using legacy plugin application:

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

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

Learn how to apply plugins to subprojects