Skip to content

Adding to a Project

Thomas Glasser edited this page Oct 26, 2023 · 4 revisions

Modrinth Maven

To add the mod with the modrinth maven, first add the modrinth repo to your repositories block:

    repositories {
        maven {
            url "https://api.modrinth.com/maven"
        }
    }

Then, add the mod to your dependencies block:

dependencies {
    // Fabric/Quilt
    include modImplementation("maven.modrinth:shardsapi:<mod_version>+Fabric")
    
    // Forge
    implementation fg.deobf("maven.modrinth:shardsapi:<mod_version>+Forge")
    jarJar(group: "dev.thomasglasser.shardsapi", name: "shardsapi", version: "[<mod_version>,<next_major_mod_version>)")
}

Cursemaven

To add the mod with Cursemaven, first add the Cursemaven repo to your repositories block:

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

Then, add the mod to your dependencies block:

dependencies {
    // Fabric/Quilt
    include modImplementation("curse.maven:shardsapi-847583:<file_id>-sources-<sources_file_id>")
    
    // Forge
    implementation fg.deobf("curse.maven:dynamiclights-847583:<file_id>-sources-<sources_file_id>")
    jarJar(group: "dev.thomasglasser.shardsapi", name: "shardsapi", version: "[<mod_version>,<next_major_mod_version>)")
}

Clone this wiki locally