| jar { |
| classifier = 'universal' |
| manifest { |
| attributes FMLCorePlugin: "li.cil.oc.common.launch.TransformerLoader" |
| attributes FMLCorePluginContainsFMLMod: "true" |
| } |
| } |
| |
| // because the normal default jar task has been modified to be obfuscated |
| task deobfJar(type: Jar) { |
| from sourceSets.main.output |
| classifier = 'deobf' |
| manifest { |
| attributes FMLCorePlugin: "li.cil.oc.common.launch.TransformerLoader" |
| attributes FMLCorePluginContainsFMLMod: "true" |
| } |
| } |
| |
| task apiJar(type: Jar) { |
| from sourceSets.main.output |
| classifier = 'api' |
| include 'li/cil/oc/api/**' |
| } |
| |
| artifacts { |
| archives deobfJar |
| archives apiJar |
| } |