This plugin supports
Gradles centralized repositories declaration
in settings.gradle
by offering a separate plugin to apply the repositories to develop mods. It can be used in the following
way in settings.gradle:
plugins {
id 'net.neoforged.moddev.repositories' version '<version>'
}
dependencyResolutionManagement {
repositories {
mavenCentral()
}
}
Please note
that defining any repository in build.gradle will completely disable the centrally managed repositories for that
project.
You can also use the repositories plugin in a project to add the repositories there, even if dependency management has
been overridden.
PR Publishing
### The artifacts published by this PR:
- :package: [`net.neoforged:moddev-gradle:0.1.86-pr-27-repositories-plugin`](https://github.com/neoforged/ModDevGradle/packages/2179716)
- :package: [`net.neoforged.moddev:net.neoforged.moddev.gradle.plugin:0.1.86-pr-27-repositories-plugin`](https://github.com/neoforged/ModDevGradle/packages/2179717)
- :package: [`net.neoforged.moddev.repositories:net.neoforged.moddev.repositories.gradle.plugin:0.1.86-pr-27-repositories-plugin`](https://github.com/neoforged/ModDevGradle/packages/2179718)
### Repository Declaration
In order to use the artifacts published by the PR, add the following repository to your buildscript:
```gradle
repositories {
maven {
name 'Maven for PR #27' // https://github.com/neoforged/ModDevGradle/pull/27
url 'https://prmaven.neoforged.net/ModDevGradle/pr27'
content {
includeModule('net.neoforged', 'moddev-gradle')
includeModule('net.neoforged.moddev', 'net.neoforged.moddev.gradle.plugin')
includeModule('net.neoforged.moddev.repositories', 'net.neoforged.moddev.repositories.gradle.plugin')
}
}
}
```
To enable this use-case:
Centralizing Repositories Declaration
This plugin supports Gradles centralized repositories declaration in settings.gradle by offering a separate plugin to apply the repositories to develop mods. It can be used in the following way in
settings.gradle
:Please note that defining any repository in build.gradle will completely disable the centrally managed repositories for that project. You can also use the repositories plugin in a project to add the repositories there, even if dependency management has been overridden.