Wyn-Price / CurseMaven

A more robust alternative to the CurseForge maven.
https://www.cursemaven.com/
21 stars 5 forks source link
fabric forge gradle maven minecraft

CurseMaven

powered-by-vercel

A more robust alternative to the normal curseforge maven, that takes in the project id and file id, rather than getting the artifacts from the jar name.

See https://cursemaven.com/ for an up-to-date Readme.

Adding the Maven

Add https://cursemaven.com/ as a maven repository, like normal.

repositories {
    maven {
        url "https://cursemaven.com"

}

Gradle 5+

If you're using Gradle 5+, you can optimize the maven repository:

repositories {
    maven {
        url "https://cursemaven.com"
        content {
            includeGroup "curse.maven"
        }
    }
}

Usage

The dependency format is as follows: curse.maven:<descriptor>-<projectid>:<fileid>

Getting the IDs

Project ID

The Project ID can be found on the About Project section of the project

File ID

To get the file ID, go to the download page of file you want to use, and the file ID will be in the URL.

Examples

dependencies {
    api "curse.maven:jei-238222:2724420"
}

Would point here with the scope api

dependencies {
    implementation fg.deobf("curse.maven:ctm-267602:2642375")
}

Would point here with the scope implementation, and be decompiled by ForgeGradle

Testing

To test cursemaven, get the project id and file id (and optional classifier), and navigate to https://www.cursemaven.com/test/<ProjectId>/<FileId>/<Classifier?>

Old version

https://github.com/Wyn-Price/CurseMaven-Old