Skip to content
ItsMeNotJames edited this page Oct 21, 2023 · 1 revision

Adding Maven Dependency

Adding The Repository

I am using modrinth maven to host these files (too lazy to set up a proper maven repo lol). To add it, add this to your repositories block in your build.gradle:

    maven {
        name = "Modrinth Maven"
        url = "https://api.modrinth.com/maven"
    }
    maven {
        name = "Architectury"
        url = "https://maven.architectury.dev/"
    }

Adding the dependency

To add the dependency, add this to the dependencies block in your build.gradle:

dependencies {
    implementation(fg.deobf("maven.modrinth:config-lib:<CONFIG_VERSION>-<MODLOADER>"))
    implementation(fg.deobf("dev.architectury:architectury-<MODLOADER>:<ARCHITECTURY_VERSION>"))
}

<MODLOADER>:
        forge when using forge or neoforge
        fabric when using fabric or quilt
<CONFIG_VERSION>:
        the version of James Config to use (e.g 1.2)
<ARCHITECTURY_VERSION>:
        the version of architectury to use (e.g 6.5.85)