SpongeGradle icon indicating copy to clipboard operation
SpongeGradle copied to clipboard

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

Open choyunjin opened this issue 1 year ago • 3 comments

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.

choyunjin avatar Sep 11 '24 03:09 choyunjin

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: @.***>

zml2008 avatar Sep 11 '24 03:09 zml2008

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

choyunjin avatar Sep 11 '24 04:09 choyunjin

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: @.***>

zml2008 avatar Sep 11 '24 04:09 zml2008