Search Gradle plugins

Using the plugins DSL:

plugins {
  id("dev.mythicdrops.gradle.project.root") version "2.0.4"
}

Using legacy plugin application:

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

apply(plugin = "dev.mythicdrops.gradle.project.root")

Using the plugins DSL:

plugins {
  id "dev.mythicdrops.gradle.project.root" version "2.0.4"
}

Using legacy plugin application:

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

apply plugin: "dev.mythicdrops.gradle.project.root"

Learn how to apply plugins to subprojects