Setup with Fabric
Learn how to import YACL into your development environment.
This wiki is currently a work-in-progress and is incomplete!
First, you will need to add the maven repository that hosts YACL.
Groovy DSL (build.gradle)
Kotlin DSL (build.gradle.kts)
repositories {
maven {
name 'Xander Maven'
url 'https://maven.isxander.dev/releases'
}
}
repositories {
maven("https://maven.isxander.dev/releases") {
name = "Xander Maven"
}
}
Next, you need to add the dependency to the classpath.
It is highly unrecommended to JiJ (jar in jar) the YACL dependency as it is likely that it's already in the user's mod folder and will significantly increase the size of your JAR.
Groovy DSL (build.gradle)
Kotlin DSL (build.gradle.kts)
dependencies {
modImplementation 'dev.isxander:yet-another-config-lib:(latest)'
}
Replace
(latest)
with the latest version of YACL available for the target Minecraft version.dependencies {
modImplementation("dev.isxander:yet-another-config-lib:(latest)")
}
Replace
(latest)
with the latest version of YACL available for the target Minecraft version.Finally, you should also add the dependency in your
fabric.mod.json
so Fabric will crash elegantly, giving the user a clear description of what they need to do.fabric.mod.json
"dependencies": {
"yet-another-config-lib": ">=2.1.1"
}
Last modified 2mo ago