Skip to content

Developer API implementation

Kofeychi edited this page Nov 24, 2024 · 1 revision

To impliment this repository,you need to update your build.gradle and gradle.properties files

build.gradle file:

repositories {
    exclusiveContent {
        forRepository {
            maven {
                name = "Modrinth"
                url = "https://api.modrinth.com/maven"
            }
        }
        filter {
            includeGroup "maven.modrinth"
        }
    }
}

dependencies {
    modImplementation "maven.modrinth:modularity:${modularity}"
}

gradle.properties file:

modularity = 1.0.1-ALPHA-1.21

And then rebuild your gradle project!