Changes

969 bytes added ,  19:46, 9 May 2021
Basic CurseMaven description
Line 65: Line 65:  
|Flat directory repositories should ''only'' be used temporarily in a local environment, and not used to include a required dependency for your project. For a actual dependency used by your mod, use a remote Maven repository holding the artifact.
 
|Flat directory repositories should ''only'' be used temporarily in a local environment, and not used to include a required dependency for your project. For a actual dependency used by your mod, use a remote Maven repository holding the artifact.
 
}}
 
}}
 +
 +
=== CurseMaven ===
 +
A commonly used alternative is [https://www.cursemaven.com/ CurseMaven](credits to Wyn Price) which allows you to depend on any file uploaded to [https://www.curseforge.com/minecraft/mc-mods/ CurseForge].
 +
 +
First add the CurseMaven Repository within the <code>repositories</code> block:
 +
<syntaxhighlight lang="gradle">
 +
repositories {
 +
    maven {
 +
        url 'https://www.cursemaven.com'
 +
        // FG4: It's recommended to uncomment the following block
 +
        // content {
 +
        //    includeGroup "curse.maven"
 +
        // }
 +
    }
 +
}
 +
</syntaxhighlight>
 +
 +
Then declare a dependency using the following format:
 +
* <code>''curse.maven'':''<description>-<project-id>'':''<file-id>''</code>
 +
 +
As an example, the dependency <code>curse.maven:jei-238222:3295418 </code>, would resolve to [https://www.curseforge.com/minecraft/mc-mods/jei/files/3295418 this file] on CurseForge.
 +
 +
For more information on usage, visit [https://www.cursemaven.com/ CurseMaven]