{"id":25912926,"url":"https://github.com/terrarium-earth/minecraft-codev","last_synced_at":"2025-03-03T10:17:30.661Z","repository":{"id":84713812,"uuid":"556562773","full_name":"terrarium-earth/minecraft-codev","owner":"terrarium-earth","description":"A Gradle plugin that allows using Minecraft as a dependency with modules that allow mod development.","archived":false,"fork":false,"pushed_at":"2025-03-02T06:28:40.000Z","size":1098,"stargazers_count":9,"open_issues_count":4,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-02T07:25:31.838Z","etag":null,"topics":["fabric","fabricmc","forge","gradle","gradle-kotlin-dsl","gradle-plugin","minecraft","minecraft-fabric","minecraft-forge","minecraft-mod","quilt","quiltmc"],"latest_commit_sha":null,"homepage":"","language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/terrarium-earth.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"ko_fi":"terrariumearth"}},"created_at":"2022-10-24T04:43:30.000Z","updated_at":"2025-03-02T06:28:45.000Z","dependencies_parsed_at":"2024-01-28T18:29:41.807Z","dependency_job_id":"3fcf0bb6-027b-41ff-be56-1e1ba9dd9932","html_url":"https://github.com/terrarium-earth/minecraft-codev","commit_stats":{"total_commits":98,"total_committers":2,"mean_commits":49.0,"dds":"0.010204081632653073","last_synced_commit":"f1f6b09536130d256ca21144546b4c689a673e5d"},"previous_names":["terrarium-earth/minecraft-codev"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/terrarium-earth%2Fminecraft-codev","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/terrarium-earth%2Fminecraft-codev/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/terrarium-earth%2Fminecraft-codev/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/terrarium-earth%2Fminecraft-codev/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/terrarium-earth","download_url":"https://codeload.github.com/terrarium-earth/minecraft-codev/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241644551,"owners_count":19996179,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["fabric","fabricmc","forge","gradle","gradle-kotlin-dsl","gradle-plugin","minecraft","minecraft-fabric","minecraft-forge","minecraft-mod","quilt","quiltmc"],"created_at":"2025-03-03T10:17:30.072Z","updated_at":"2025-03-03T10:17:30.656Z","avatar_url":"https://github.com/terrarium-earth.png","language":"Kotlin","funding_links":["https://ko-fi.com/terrariumearth"],"categories":[],"sub_categories":[],"readme":"# minecraft-codev\nA Gradle plugin that allows using Minecraft as a dependency with modules that allow mod development in Forge, Fabric, Quilt with any mappings.\n\n## Features\n- Allows using customized Minecraft Jars in any configuration, rather than being implicitly added to existing configurations like implementation\n- Allows Jar intersections to have common source sets between different versions and platforms\n- Supports applying mixins directly to dependencies to give a better debugging and development experience.\n- Supports custom Gradle version selectors like `1.16+`, `[1.16, 1.18]`, `1.19.3-SNAPSHOT`\n\nThis project is currently heavily WIP, so many of the planned features are yet not fully implemented.\n\n## Examples\n\n### Simple Minecraft Example\n```kotlin\nplugins {\n  id(\"minecraft-codev-remapper\") version \"1.0\"\n}\n\nrepositories {\n  minecraft()\n  mavenCentral()\n}\n\ndependencies {\n  // Defined in gradle.properties\n  val minecraftVersion: String by project\n\n  // `mappings` is the default mappings configuration that `remapped` uses.\n  mappings(minecraft(MinecraftType.ClientMappings, minecraftVersion))\n\n  // `minecraft(MinecraftType.Client, minecraftVersion)` returns a client Jar, which transitively includes a common Jar.\n  // `.remapped` returns a remapped version of the dependency.\n  implementation(minecraft(MinecraftType.Client, minecraftVersion).remapped)\n}\n```\n\n### Forge Patched Minecraft Example\n```kotlin\nplugins {\n  id(\"minecraft-codev-forge\") version \"1.0\"\n  id(\"minecraft-codev-remapper\") version \"1.0\"\n}\n\nrepositories {\n  maven(url = \"https://maven.minecraftforge.net/\")\n  minecraft()\n  mavenCentral()\n}\n\ndependencies {\n  val minecraftVersion: String by project\n  val forgeVersion: String by project\n\n  // `patches` is the default patches configuration that `patched` uses.\n  //  The Forge userdev can be used in mappings as well to allow Forge's srg mappings to be applied.\n  patches(mappings(group = \"net.minecraftforge\", name = \"forge\", version = \"$minecraftVersion-$forgeVersion\", classifier = \"userdev\"))\n\n  mappings(minecraft(MinecraftType.ClientMappings, minecraftVersion))\n  implementation(minecraft.patched(minecraftVersion).remapped)\n}\n```\n\n### Multiversion Example\n```kotlin\nplugins {\n  id(\"minecraft-codev-remapper\") version \"1.0\"\n}\n\nval mod16: SourceSet by sourceSets.creating // For 1.16\nval mod18: SourceSet by sourceSets.creating // For 1.18\nval mod19: SourceSet by sourceSets.creating // For 1.19\n\nrepositories {\n  minecraft()\n  mavenCentral()\n}\n\ndependencies {\n  \"mod16Mappings\"(minecraft(MinecraftType.ClientMappings, \"1.16+\"))\n  \"mod16Implementation\"(minecraft(MinecraftType.Client, \"1.18+\").remapped(mappingsConfiguration = \"mod16Mappings\"))\n\n  \"mod18Mappings\"(minecraft(MinecraftType.ClientMappings, \"1.18+\"))\n  \"mod18Implementation\"(minecraft(MinecraftType.Client, \"1.18+\").remapped(mappingsConfiguration = \"mod18Mappings\"))\n\n  \"mod19Mappings\"(minecraft(MinecraftType.ClientMappings, \"1.19+\"))\n  \"mod19Implementation\"(minecraft(MinecraftType.Client, \"1.19+\").remapped(mappingsConfiguration = \"mod19Mappings\"))\n}\n```\n\n### Split source sets Example\n```kotlin\nplugins {\n  id(\"minecraft-codev-remapper\") version \"1.0\"\n}\n\nval client: SourceSet by sourceSets.creating {\n  // Extend main configurations\n  configurations[compileClasspathConfigurationName].extendsFrom(configurations.compileClasspath)\n  configurations[runtimeClasspathConfigurationName].extendsFrom(configurations.runtimeClasspath)\n  configurations[mappingsConfigurationName].extendsFrom(configurations.mappings)\n\n  // Add main output to classpaths\n  compileClasspath += sourceSets.main.get().output\n  runtimeClasspath += sourceSets.main.get().output\n}\n\nrepositories {\n  minecraft()\n  mavenCentral()\n}\n\ndependencies {\n  val minecraftVersion: String by project\n\n  mappings(minecraft(MinecraftType.ServerMappings, minecraftVersion))\n  implementation(minecraft(MinecraftType.Common).remapped)\n\n  \"clientMappings\"(minecraft(MinecraftType.ClientMappings, minecraftVersion))\n  \"clientImplementation\"(minecraft(MinecraftType.Client, minecraftVersion).remapped(mappingsConfiguration = \"clientMappings\"))\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fterrarium-earth%2Fminecraft-codev","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fterrarium-earth%2Fminecraft-codev","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fterrarium-earth%2Fminecraft-codev/lists"}