Search Gradle plugins

net.neoforged.moddev.repositories

This plugin adds the repositories needed for developing Minecraft mods. It is applied automatically by the moddev plugin, but can be applied manually in settings.gradle to make use of Gradle dependency management.

https://github.com/neoforged/ModDevGradle

Sources: https://github.com/neoforged/ModDevGradle.git

Add this plugin to your build using the plugins DSL:

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

See also:

  • Adding the plugin to build logic for usage in precompiled script plugins.

    See the relevant documentation for more information.

    Add this plugin as a dependency to <convention-plugins-build>/build.gradle(.kts):

    dependencies {
      implementation("net.neoforged.moddev.repositories:net.neoforged.moddev.repositories.gradle.plugin:2.0.54-beta")
    }
    It can then be applied in the precompiled script plugin:
    plugins {
      id("net.neoforged.moddev.repositories")
    }
  • The legacy method of plugin application. See the relevant documentation for more information.
    buildscript {
      repositories {
        gradlePluginPortal()
      }
      dependencies {
        classpath("net.neoforged.moddev.repositories:net.neoforged.moddev.repositories.gradle.plugin:2.0.54-beta")
      }
    }
    
    apply(plugin = "net.neoforged.moddev.repositories")
  • Applying plugins to all subprojects .