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

Download libraries from maven repository #52

Open
jamespglines opened this issue Apr 30, 2022 · 3 comments
Open

Download libraries from maven repository #52

jamespglines opened this issue Apr 30, 2022 · 3 comments

Comments

@jamespglines
Copy link

I download many versions of paper, every few days. Each time this server jar is ~35mb. Most of this is libraries, which do not change frequently. Without libraries bundled, jar will only be ~16mb.

Because Mojang vanilla server is already downloaded, this gets me to think... why not download libraries from maven as well? This can be done with maven resolver, or the more simple jboss shrinkwrap resolver.

This will only need to redownload libraries on change, not every time.

Multiply the 19mb saving this will cause by every user and you have so many tb saved on the end of PaperMC.

I can make pr for this if desired, it is feature I want. I'd like feedback first before taking time to do this.

@electronicboy
Copy link
Member

This has already been considered and somewhat planned however is not a high priority nor do I recall if we ever came to a real conclusion on this due to wanting easily repeatable environments, outside of the vanilla jar, which we already have the odd issues with due to peoples environments, you can download the jar and take it with you and run it anywhere in the world and it will just work

@electronicboy
Copy link
Member

(saving data is also not really a huge concern to us at this point as CF caches all of our jars anyways)

@jamespglines
Copy link
Author

jamespglines commented Apr 30, 2022

You already can't just run it anywhere because it has to download from mojang, this is little different. Unless Paper changes its maven repository (central is not allowed as CDN, it is against their policy), which will already cause big problems, server will still work.

Should this be implemented I would make it still run even with no internet, as long as it has libraries locally.

I understand, though, if this is just additional space for error that you do not want.

For bandwidth, you can also think of carbon footprint that downloads release, although, this may not be of big concern to you.

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

No branches or pull requests

2 participants