SpongePowered / SpongeGradle

Handy gradle utilities for the various gradle projects of SpongePowered
MIT License
21 stars 16 forks source link

`plugin-0.0.0-all.jar` file from `shadowJar` is not being used #87

Open kmoon2437 opened 2 weeks ago

kmoon2437 commented 2 weeks ago

I have a plugin with some dependencies, so I need to make a fat jar file(plugin-0.0.0-all.jar) with shadowJar. However, the runServer task doesn't uses the fat jar file but the original jar file(plugin-0.0.0.jar) and NoClassDefFoundError occurs.

zml2008 commented 2 weeks ago

Which shadow plugin?

On Tue, Sep 10, 2024, at 20:21, Cho Yunjin wrote:

I have a plugin with some dependencies, so I need to make a fat jar file(plugin-0.0.0-all.jar) with shadowJar. However, the runServer task doesn't uses the fat jar file but the original jar file(plugin-0.0.0.jar) and NoClassDefFoundError occurs.

— Reply to this email directly, view it on GitHub https://github.com/SpongePowered/SpongeGradle/issues/87, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAEZSZDYYDS4BX2R5UDTJH3ZV6ZMVAVCNFSM6AAAAABOAALWK6VHI2DSMVQWIX3LMV43ASLTON2WKOZSGUYTQMZWGY3DGOI. You are receiving this because you are subscribed to this thread.Message ID: @.***>

kmoon2437 commented 2 weeks ago

I'm using com.gradleup.shadow version 8.3.0.

zml2008 commented 2 weeks ago

Ah, we probably need to update SG for the new plugin ID.

On Tue, Sep 10, 2024, at 21:23, Cho Yunjin wrote:

I'm using com.gradleup.shadow version 8.3.0.

— Reply to this email directly, view it on GitHub https://github.com/SpongePowered/SpongeGradle/issues/87#issuecomment-2342591607, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAEZSZAIZJLAM3BVDUNOFBLZV7AS5AVCNFSM6AAAAABOAALWK6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNBSGU4TCNRQG4. You are receiving this because you commented.Message ID: @.***>