import net.fabricmc.loom.api.LoomGradleExtensionAPI plugins { java kotlin("jvm") version "1.9.0" kotlin("plugin.serialization") version "1.9.0" id("architectury-plugin") version "3.4-SNAPSHOT" id("dev.architectury.loom") version "1.3-SNAPSHOT" apply false id("com.github.johnrengelman.shadow") version "8.1.1" apply false id("io.github.juuxel.loom-vineflower") version "1.11.0" apply false } architectury { minecraft = rootProject.property("minecraft_version").toString() } subprojects { apply(plugin = "dev.architectury.loom") apply(plugin = "io.github.juuxel.loom-vineflower") val loom = project.extensions.getByName("loom") dependencies { "minecraft"("com.mojang:minecraft:${project.property("minecraft_version")}") "mappings"(loom.layered { officialMojangMappings() parchment("org.parchmentmc.data:parchment-${project.property("minecraft_version")}:${project.property("parchment_version")}@zip") }) } } allprojects { apply(plugin = "java") apply(plugin = "kotlin") apply(plugin = "kotlinx-serialization") apply(plugin = "architectury-plugin") apply(plugin = "maven-publish") base.archivesName.set("quaedam") version = "1.0.0" group = "quaedam" repositories { maven { name = "ParchmentMC" setUrl("https://maven.parchmentmc.org") } } dependencies { compileOnly("org.jetbrains.kotlin:kotlin-stdlib") compileOnly("org.jetbrains.kotlinx:kotlinx-serialization-json:1.5.1") } tasks.withType { options.encoding = "UTF-8" options.release.set(17) } kotlin.target.compilations.all { kotlinOptions.jvmTarget = "17" } java { withSourcesJar() } }