plugins { alias(libs.plugins.architectury.loom) } base { archivesName.set("yet-another-config-lib") } architectury { val enabledLoaders = rootProject.properties["loaders"].toString().split(",").map { it.trim() } common(enabledLoaders) } loom { silentMojangMappingsLicense() accessWidenerPath.set(file("src/main/resources/yacl.accesswidener")) } dependencies { minecraft(libs.minecraft) mappings(loom.layered { val qm = libs.versions.quilt.mappings.get() if (qm != "0") mappings("org.quiltmc:quilt-mappings:${libs.versions.minecraft.get()}+build.${libs.versions.quilt.mappings.get()}:intermediary-v2") officialMojangMappings() }) modImplementation(libs.fabric.loader) } java { withSourcesJar() } tasks { remapJar { archiveClassifier.set(null as String?) from(rootProject.file("LICENSE")) } } publishing { publications { create("common") { groupId = "dev.isxander.yacl" artifactId = "yet-another-config-lib-common" from(components["java"]) } } } tasks.findByPath("publishCommonPublicationToReleasesRepository")?.let { rootProject.tasks["releaseMod"].dependsOn(it) }