Skip to content

Conversation

@embeddedt
Copy link

Configuring runClient to depend on shadowJar means that shadowing must be run every time a change is made while developing a mod. For mods with a lot of shadowed dependencies (e.g. Angelica), this is painfully slow.

It shouldn't be necessary to do this as the dependencies are accessible in dev already. Shadowing is only needed at reobf time, and still works there after the change in this PR.

@mitchej123 mitchej123 requested review from a team and eigenraven December 24, 2023 20:37
embeddedt added a commit to GTNewHorizons/Angelica that referenced this pull request Dec 24, 2023
mitchej123 pushed a commit to GTNewHorizons/Angelica that referenced this pull request Dec 25, 2023
configurations.runtimeElements.outgoing.artifact(tasks.named("shadowJar", ShadowJar))
configurations.apiElements.outgoing.artifact(tasks.named("shadowJar", ShadowJar))
tasks.named("jar", Jar) {
enabled = false
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This task has to stay disabled, or at least needs to be reconfigured to a different classifier like -dev-preshadow when shadow is enabled, otherwise you have 2 gradle tasks producing the same jar: mod-dev.jar when shadow is enabled. This can lead to issues with confused jars, or gradle erroring out if both tasks try to be run at build time.

@eigenraven eigenraven merged commit bbdc475 into GTNewHorizons:master Jan 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants