From 6a36a1aa03cf46350bb3dbd2bdabe7312786f36d Mon Sep 17 00:00:00 2001 From: drori200 Date: Thu, 13 Oct 2022 03:14:41 +0300 Subject: [PATCH] Revert "Split releases to have a release without mixin embedded" This reverts commit cca408ac55d40eb6ae0b85a07f6746a20c1f7715. --- build.gradle | 29 ++++++----------------------- 1 file changed, 6 insertions(+), 23 deletions(-) diff --git a/build.gradle b/build.gradle index 49bf46fb0..51027b334 100644 --- a/build.gradle +++ b/build.gradle @@ -16,8 +16,8 @@ buildscript { } configurations { - mixins - compile.extendsFrom(mixins) + embed + compile.extendsFrom(embed) shade compile.extendsFrom(shade) } @@ -98,7 +98,7 @@ repositories { } dependencies { - mixins('org.spongepowered:mixin:0.7.11-SNAPSHOT') { + embed('org.spongepowered:mixin:0.7.11-SNAPSHOT') { // Mixin includes a lot of dependencies that are too up-to-date exclude module: 'launchwrapper' exclude module: 'guava' @@ -127,34 +127,17 @@ jar { attributes.put("MixinConfigs", yourMixinConfig) } -} - -// a task to run after the reobf task to create another jar with the contents of the mixin dependency -task MixinsJar(type: Jar, dependsOn: reobf) { - classifier = "mixin-included" - duplicatesStrategy = DuplicatesStrategy.EXCLUDE - manifest { - attributes.put("TweakClass", "org.spongepowered.asm.launch.MixinTweaker") - attributes.put("FMLCorePluginContainsFMLMod", true) - attributes.put("ForceLoadAsMod", true) - attributes.put("MixinConfigs", yourMixinConfig) - } - from configurations.mixins.collect { + // embed libraries in jar + from configurations.embed.collect { exclude '**/LICENSE.txt' - //exclude signature files (causing a SecurityException error) - exclude "**/**.RSA" - exclude "**/**.SF" it.isDirectory() ? it : zipTree(it) } - with jar } + reobf { addExtraSrgFile mixinSrg } -artifacts { - archives MixinsJar -} afterEvaluate { def fixedRelPathToAP = relativePathToMixinAP if(fixedRelPathToAP.startsWith('./') || fixedRelPathToAP.startsWith('.\\')){