SpongePowered / SpongeDocs

Documentation for Sponge and its Implementations
Creative Commons Attribution Share Alike 4.0 International
110 stars 116 forks source link

Add section how to configure shadow JARs when setting up a MCP workspace #579

Open stephan-gh opened 7 years ago

stephan-gh commented 7 years ago

Using MCP in Plugins should be extended with a section that explains how to make it work together with a Shadow JAR. By default, ForgeGradle will only re-obfuscate the default JAR, therefore additional configuration is necessary to make it aware of the shadow JAR.

(This is mostly just a note for myself.)

Inscrutable commented 6 years ago

Is this still on your to-do list, or shall I tack on "help wanted" @Minecrell ?

ST-DDT commented 6 years ago

@Minecrell or anybody else: Could you give me a hint/link to demo plugin that I could use for this?

phit commented 6 years ago

i think this is the most commonly used gradle plugin to shadow http://imperceptiblethoughts.com/shadow/

example: https://github.com/SpongePowered/Cookbook/blob/master/Plugin/HelloFromKotlin/build.gradle