at main 3.1 kB view raw
1plugins { 2 `maven-publish` 3 alias(libs.plugins.cloche) 4} 5 6repositories { 7 cloche { 8 mavenForge() 9 mavenFabric() 10 mavenNeoforged() 11 librariesMinecraft() 12 main() 13 } 14 maven("https://maven.neoforged.net/mojang-meta") 15 mavenLocal() 16 mavenCentral() 17} 18 19group = "xyz.naomieow" 20version = "3.1.0" 21 22cloche { 23 metadata { 24 modId = "ibo" 25 name = "Incendium Biomes Only" 26 description = "Disables everything but biomes in Incendium" 27 license = "PolyForm Strict License 1.0.0" 28 29 author { 30 name = "Naomi Roberts" 31 } 32 } 33 34 val common = common("common:datapack") 35 36 forge("forge:1.19") { 37 minecraftVersion = "1.19" 38 loaderVersion = "41.1.0" 39 40 metadata { 41 dependencies { 42 dependency { 43 modId = "incendium" 44 required = true 45 version("5.1.4") 46 } 47 } 48 } 49 50 dependsOn(common) 51 } 52 53 forge("forge:1.19.3") { 54 minecraftVersion = "1.19.3" 55 loaderVersion = "44.1.23" 56 57 metadata { 58 dependencies { 59 dependency { 60 modId = "incendium" 61 required = true 62 version("5.1.4") 63 } 64 } 65 } 66 67 dependsOn(common) 68 } 69 70 fabric("fabric:1.19") { 71 minecraftVersion = "1.19" 72 loaderVersion = "0.16.0" 73 74 metadata { 75 entrypoint("main", "xyz.naomieow.ibo.IboMod") 76 dependencies { 77 dependency { 78 modId = "incendium" 79 required = true 80 version("5.1.4") 81 } 82 fabricApi("0.58.0") 83 } 84 } 85 86 dependsOn(common) 87 } 88 89 fabric("fabric:1.21") { 90 minecraftVersion = "1.21" 91 loaderVersion = "0.16.0" 92 93 metadata { 94 entrypoint("main", "xyz.naomieow.ibo.IboMod") 95 dependencies { 96 dependency { 97 modId = "incendium" 98 required = true 99 version("5.4.3") 100 } 101 fabricApi("0.102.0") 102 } 103 } 104 105 dependsOn(common) 106 } 107 108 neoforge("neoforge:1.21") { 109 minecraftVersion = "1.21" 110 loaderVersion = "21.0.167" 111 112 metadata { 113 dependencies { 114 dependency { 115 modId = "incendium" 116 required = true 117 version("5.4.3") 118 } 119 } 120 } 121 122 dependsOn(common) 123 } 124 125 val datapackZip by tasks.registering(Zip::class) { 126 // Cloche doesn't generate resources folder for common anymore 127 // so I jankily grab the datapack from the source code instead. 128 from(File(projectDir, "src/common/datapack/main/resources/resourcepacks/ibo")) { 129 include("**") 130 } 131 archiveClassifier = "datapack" 132 destinationDirectory = base.distsDirectory 133 } 134 135 artifacts { 136 archives(datapackZip) 137 } 138}