From 6a811b6471081b4ca00a965be7a0421a9869ce1d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20N=C3=BCcke?= Date: Tue, 21 Apr 2015 13:57:23 +0200 Subject: [PATCH] Fix `oc_at.cfg` in obf environment. --- build.gradle | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/build.gradle b/build.gradle index ddad3456a..b2c04c0b5 100644 --- a/build.gradle +++ b/build.gradle @@ -207,6 +207,15 @@ processResources { exclude 'mcmod.info' exclude 'application.conf' } + + // Move access transformer to META-INF + rename '(.+_at.cfg)', 'META-INF/$1' +} + +def commonManifest = { + attributes FMLCorePlugin: "li.cil.oc.common.launch.TransformerLoader" + attributes FMLCorePluginContainsFMLMod: "true" + attributes FMLAT: "oc_at.cfg" } jar { @@ -218,10 +227,7 @@ jar { } } classifier = 'universal' - manifest { - attributes FMLCorePlugin: "li.cil.oc.common.launch.TransformerLoader" - attributes FMLCorePluginContainsFMLMod: "true" - } + manifest commonManifest } javadoc { @@ -238,10 +244,7 @@ task deobfJar(type: Jar) { } } classifier = 'dev' - manifest { - attributes FMLCorePlugin: "li.cil.oc.common.launch.TransformerLoader" - attributes FMLCorePluginContainsFMLMod: "true" - } + manifest commonManifest } task apiJar(type: Jar) {