Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use normal jar for runClient/runServer #244

Merged
merged 3 commits into from
Jan 1, 2024

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
@@ -959,22 +959,13 @@ if (usesShadowedDependencies.toBoolean()) {
configurations.apiElements.outgoing.artifacts.clear()
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
1 check passed
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