|
| 1 | +import com.mmodding.gradle.api.EnvironmentTarget |
| 2 | + |
1 | 3 | plugins { |
2 | 4 | id 'fabric-loom' version '1.6-SNAPSHOT' |
| 5 | + id 'com.mmodding.gradle' version '0.0.8' |
3 | 6 | id 'maven-publish' |
4 | 7 | } |
5 | 8 |
|
@@ -37,6 +40,39 @@ loom { |
37 | 40 | accessWidenerPath = file("src/main/resources/env_json.accesswidener") |
38 | 41 | } |
39 | 42 |
|
| 43 | +mmodding { |
| 44 | + configureFabricModJson { |
| 45 | + namespace = "env_json" |
| 46 | + name = "env.json" |
| 47 | + description = "env.json is a Minecraft Library introducing a new sub json file extension format, with the goal of redirecting minecraft resources to other ones based on the environment context." |
| 48 | + addAuthor("MModding Team") |
| 49 | + addContributor("FirstMegaGame4") |
| 50 | + withContact { |
| 51 | + it.homepage = "https://modrinth.com/mod/env.json" |
| 52 | + it.sources = "https://github.com/MModding/env.json" |
| 53 | + it.issues = "https://github.com/MModding/env.json/issues" |
| 54 | + } |
| 55 | + license = "Code: PolyForm-Shield-1.0.0\\nAssets: All Rights Reserved" |
| 56 | + icon = "assets/env_json/icon.png" |
| 57 | + environment = EnvironmentTarget.ANY |
| 58 | + withEntrypoints { |
| 59 | + it.init("com.mmodding.env.json.impl.EnvJsonInitializer") |
| 60 | + } |
| 61 | + accessWidener = "env_json.accesswidener" |
| 62 | + addMixin("env_json.mixins.json") |
| 63 | + withDependencies { |
| 64 | + it.fabricLoaderVersion = ">=" + project.loader_version |
| 65 | + it.minecraftVersion = ">=1.20.5 <=" + project.minecraft_version |
| 66 | + it.javaVersion = ">=" + 21 |
| 67 | + it.fabricApiVersion = "*" |
| 68 | + } |
| 69 | + withSuggestions { |
| 70 | + it.addDependency("env_driven_assets", "*") |
| 71 | + it.addDependency("env_driven_data", "*") |
| 72 | + } |
| 73 | + } |
| 74 | +} |
| 75 | + |
40 | 76 | processResources { |
41 | 77 | inputs.property "version", project.version |
42 | 78 |
|
|
0 commit comments