diff options
author | nea <nea@nea.moe> | 2023-09-25 18:22:20 +0200 |
---|---|---|
committer | nea <nea@nea.moe> | 2023-09-25 18:22:20 +0200 |
commit | 4857461afbddc6a4e5bbe66e80efe8072b273dd9 (patch) | |
tree | c0c0a510496af56c2a1f66c716229fbac4954038 /build.gradle | |
parent | cc01e089d361f56382eb43560aee952674211dd2 (diff) | |
download | LibGui-1.20.2.tar.gz LibGui-1.20.2.tar.bz2 LibGui-1.20.2.zip |
Add 1.20.2 support1.20.2
Diffstat (limited to 'build.gradle')
-rw-r--r-- | build.gradle | 23 |
1 files changed, 15 insertions, 8 deletions
diff --git a/build.gradle b/build.gradle index 0234a4d..9bd28b7 100644 --- a/build.gradle +++ b/build.gradle @@ -64,19 +64,19 @@ repositories { } } } +// True: module classes are used in public API classes/methods/fields +def fabricApiModules = [ + 'fabric-api-base': true, + 'fabric-lifecycle-events-v1': false, + 'fabric-networking-api-v1': true, + 'fabric-rendering-v1': false, +] dependencies { minecraft "com.mojang:minecraft:${project.minecraft_version}" mappings "net.fabricmc:yarn:${project.yarn_mappings}:v2" modImplementation "net.fabricmc:fabric-loader:${project.loader_version}" - // True: module classes are used in public API classes/methods/fields - def fabricApiModules = [ - 'fabric-api-base': true, - 'fabric-lifecycle-events-v1': false, - 'fabric-networking-api-v1': true, - 'fabric-rendering-v1': false, - ] fabricApiModules.forEach { module, api -> def dependency = fabricApi.module(module, project.fabric_version) @@ -108,9 +108,16 @@ dependencies { processResources { inputs.property "version", project.version + inputs.property "loader_version", project.loader_version + fabricApiModules.forEach {module, api -> + inputs.property "${module.replace("-", "_")}_version", fabricApi.moduleVersion(module, project.fabric_version) + } + inputs.property "minecraft_version", project.minecraft_version + inputs.property "jankson_version", project.jankson_version.split("\\+")[0] + inputs.property "libninepatch_version", project.libninepatch_version filesMatching("fabric.mod.json") { - expand "version": project.version + expand inputs.properties } } |