Projects on Modrinth are automatically available through a Maven repository for use with JVM build tools such as Gradle.
maven { name = "Modrinth"; url = "https://api.modrinth.com/maven" }
Maven coordinates:
maven.modrinth:project-test:projecttest-fabric-0.0.4_fabric0.34.6_mc1.17_ds21w20a