#Is there a way to replace a gradle task with another?

1 messages · Page 1 of 1 (latest)

frosty current
#

I'm trying to use com.gradleup.shadow for adding my library to a Minecraft mod. It works fine but one problem I have is that the runClient task which I use to run and debug the mod from IntelliJ IDEA doesn't seem to use the resulting jar. (Forcing me to copy it to a launcher)

Since ShadowJar is apparently based on Jar, I'm wondering if there is a way to just replace Jar with ShadowJar so it works when I start debugging

livid meteorBOT
#

<@&987246554085740594> please have a look, thanks.

thorn spindle
#

Did runClient ever depend on the jar in the first place?

dull peak
#

shadow jar should only bundle stuff that is also on the implementation classpath, which will be there for the run client task

#

what are you doing that doesnt respect that requiring you to copy the jar for testing