Skip to content

Replace Shadow JAR with proper JiJ implementation#5754

Merged
Wide-Cat merged 2 commits into
MeteorDevelopment:mc-updatefrom
Big-Iron-Cheems:shadow-jar
Oct 9, 2025
Merged

Replace Shadow JAR with proper JiJ implementation#5754
Wide-Cat merged 2 commits into
MeteorDevelopment:mc-updatefrom
Big-Iron-Cheems:shadow-jar

Conversation

@Big-Iron-Cheems

Copy link
Copy Markdown
Collaborator

Type of change

  • Bug fix
  • New feature

Description

Replace Shadow JAR with proper JiJ implementation.
This is a rewrite of the now closed #5330 PR, updated to the new 1.21.9 branch.
The implementation relies on this source for its transitive dependency handling.

Related issues

None.

How Has This Been Tested?

Tested by loading the produced JAR in a fresh Fabric instance via PrismLauncher.

Checklist:

  • My code follows the style guidelines of this project.
  • I have added comments to my code in more complex areas.
  • I have tested the code in both development and production environments.

@MukjepScarlet

Copy link
Copy Markdown
Contributor

@MukjepScarlet

Copy link
Copy Markdown
Contributor

And jsr305 might be compileOnly? I don't know which dependency uses it...

@Big-Iron-Cheems

Copy link
Copy Markdown
Collaborator Author
image

Game-provided libs should be excluded.

https://github.com/CCBlueX/LiquidBounce/blob/0f4b9ba3c1b254180168aece0be405d7a4abfec1/build.gradle.kts#L68

Good catch, I see that the older Shadow impl did exclude this.
Relatively easy fix, will do in a later commit.
Perhaps we can look into excluding other deps if need be.

- `slf4j` is provided by Minecraft/Fabric
- `jsr305` is used for comp-time annotations
@Wide-Cat Wide-Cat merged commit 7a41475 into MeteorDevelopment:mc-update Oct 9, 2025
1 check passed
@Big-Iron-Cheems Big-Iron-Cheems deleted the shadow-jar branch October 9, 2025 10:24
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.

3 participants