From de7eeed9168317f367cf4ab1d10426e6f8b843a5 Mon Sep 17 00:00:00 2001 From: LexManos Date: Wed, 14 Nov 2018 13:42:11 -0800 Subject: [PATCH] Make Forge group/name dynamic in MDK as well. --- build.gradle | 2 ++ mdk/build.gradle | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index 6ecdfcafe..5e9f884a4 100644 --- a/build.gradle +++ b/build.gradle @@ -707,6 +707,8 @@ project(':forge') { } filter(ReplaceTokens, tokens: [ FORGE_VERSION: project.version, + FORGE_GROUP: project.group, + FORGE_NAME: project.name, MC_VERSION: MC_VERSION, MAPPING_CHANNEL: MAPPING_CHANNEL, MAPPING_VERSION: MAPPING_VERSION diff --git a/mdk/build.gradle b/mdk/build.gradle index 58be6a5f6..ee711d2a9 100644 --- a/mdk/build.gradle +++ b/mdk/build.gradle @@ -44,7 +44,7 @@ minecraft { dependencies { // Specify the version of Minecraft to use, If this is any group other then 'net.minecraft' it is assumed // that the dep is a ForgeGradle 'patcher' dependency. And it's patches will be applied. - minecraft 'net.minecraftforge:forge:@FORGE_VERSION@' + minecraft '@FORGE_GROUP@:@FORGE_NAME@:@FORGE_VERSION@' // you may put jars on which you depend on in ./libs // or you may define them like so..