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

Add full Cleanroom library filter #124

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

kappa-maintainer
Copy link

Since both old and new version of many libraries exist, I had to filter them by version

"org.lwjgl.lwjgl:lwjgl-platform:2.9.4-nightly-20150209",
"org.lwjgl.lwjgl:lwjgl:2.9.4-nightly-20150209",
"org.lwjgl.lwjgl:lwjgl_util:2.9.4-nightly-20150209"
)
Copy link
Collaborator

@wagyourtail wagyourtail Mar 13, 2025

Choose a reason for hiding this comment

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

libraries that are just version changes (as in the package doesn't change, etc) don't need to be on this list; gradle will just use the most updated one.
therefore you can probably omit version numbers, except for lwjgl I guess. if you use vanillaExclude.any { library.name.startswith(it) } for the filter below

return null
}
if (name.startsWith("org.lwjgl") && name.split(":").size > 3) {
if (!name.split(":")[2].endsWith(lwjglClassifier)) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

I don't think this'll ever be hit by the vanilla client json, because it uses library.natives and doesn't put them top level

Copy link
Author

Choose a reason for hiding this comment

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

I wonder in which step it downloads natives though

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