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

Migrate to gradle #1429

Merged
merged 1 commit into from
Nov 18, 2024
Merged

Migrate to gradle #1429

merged 1 commit into from
Nov 18, 2024

Conversation

Pablete1234
Copy link
Member

@Pablete1234 Pablete1234 commented Nov 18, 2024

Migrates PGM to use gradle instead of maven. It makes our multi-module setup so much easier to handle given certain modules depend on different mc versions but we don't want any of those deps reachable at compile time. They were a pain to get working on maven, and much simpler in gradle. Additionally, and most importantly, it allows us to use the paperweight userdev gradle plugin which gives us a much easier way to access paper/minecraft internals for modern versions without needing to rely on repos.

Additionally i've removed a few classes that weren't used and that maven was trimming but gradle kept.
Overall the final jar size is pretty similar, from 8.2MB (maven) to 8.5MB (gradle). It seems maven's minimizejar was a bit more aggresive, but if we were really keen on lowering size we could just opt to use proguard to trim at a more fine-grained level.

Signed-off-by: Pablo Herrera <[email protected]>
@Pablete1234 Pablete1234 merged commit a86687f into dev Nov 18, 2024
2 checks passed
@Pablete1234 Pablete1234 deleted the gradle-migration branch November 18, 2024 22:13
Pablete1234 added a commit that referenced this pull request Nov 30, 2024
Signed-off-by: Pablo Herrera <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants