plugins { id 'com.github.johnrengelman.shadow' id "me.shedaniel.unified-publishing" } architectury { platformSetupLoomIde() fabric() } configurations { common { canBeResolved = true canBeConsumed = false } compileClasspath.extendsFrom common runtimeClasspath.extendsFrom common developmentFabric.extendsFrom common // Files in this configuration will be bundled into your mod using the Shadow plugin. // Don't use the `shadow` configuration from the plugin itself as it's meant for excluding files. shadowBundle { canBeResolved = true canBeConsumed = false } } dependencies { modImplementation "net.fabricmc:fabric-loader:$rootProject.fabric_loader_version" // Fabric API. This is technically optional, but you probably want it anyway. modImplementation "net.fabricmc.fabric-api:fabric-api:$rootProject.fabric_api_version" common(project(path: ':common', configuration: 'namedElements')) { transitive false } shadowBundle project(path: ':common', configuration: 'transformProductionFabric') localRuntime "org.anarres:jcpp:1.4.14" localRuntime "io.github.douira:glsl-transformer:2.0.1" modLocalRuntime "dev.engine-room.flywheel:flywheel-fabric-${minecraft_version}:${flywheel_version}" modLocalRuntime "dev.engine-room.vanillin:vanillin-fabric-${minecraft_version}:${vanillin_version}" modLocalRuntime "maven.modrinth:iris:${iris_version}" modLocalRuntime "maven.modrinth:sodium:${sodium_version}" } processResources { inputs.property 'version', project.version filesMatching('fabric.mod.json') { expand version: project.version } } shadowJar { configurations = [project.configurations.shadowBundle] archiveClassifier = 'dev-shadow' } remapJar { inputFile.set shadowJar.archiveFile } unifiedPublishing { project { displayName = "$project.version-fabric" version = "$project.version" releaseType = "beta" changelog = new File("${rootProject.rootDir.toPath().toString()}/CHANGELOG.md").getText('UTF-8') gameVersions = ["1.20.1"] gameLoaders = ["fabric"] mainPublication remapJar relations { depends { curseforge = "irisshaders" modrinth = "iris" } optional { curseforge = "create" modrinth = "create" } optional { curseforge = "vanillin" modrinth = "flw-vanillin" } optional { curseforge = "colorwheel-patcher" modrinth = "colorwheel-patcher" } } if (System.getenv("CF_TOKEN") != null) { curseforge { token = System.getenv("CF_TOKEN") id = "1254143" } } if (System.getenv("MODRINTH_TOKEN") != null) { modrinth { token = System.getenv("MODRINTH_TOKEN") id = "BzHgFoGz" } } } }