Search Gradle plugins

Using the plugins DSL:

plugins {
  id("net.neoforged.moddev") version "2.0.32-beta"
}

Using legacy plugin application:

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

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

Using the plugins DSL:

plugins {
  id "net.neoforged.moddev" version "2.0.32-beta"
}

Using legacy plugin application:

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

apply plugin: "net.neoforged.moddev"

Learn how to apply plugins to subprojects