Search Gradle plugins

Using the plugins DSL:

plugins {
  id("net.neoforged.moddev") version "0.1.122"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url = uri("https://plugins.gradle.org/m2/")
    }
  }
  dependencies {
    classpath("net.neoforged:moddev-gradle:0.1.122")
  }
}

apply(plugin = "net.neoforged.moddev")

Using the plugins DSL:

plugins {
  id "net.neoforged.moddev" version "0.1.122"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org/m2/"
    }
  }
  dependencies {
    classpath "net.neoforged:moddev-gradle:0.1.122"
  }
}

apply plugin: "net.neoforged.moddev"

Learn how to apply plugins to subprojects