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

Updated Guice to 6.0.0 and manually include updated ASM #1016

Merged
merged 1 commit into from
Jun 3, 2023

Conversation

4drian3d
Copy link
Contributor

@4drian3d 4drian3d commented Jun 1, 2023

In this pull request, Guice was upgraded to version 6.0.0, which has no breaking changes from version 5.1.0. This version adds support for jakarta.inject as a future replacement for javax.inject (as of Guice 7.0.0 support for javax.inject is removed), and also updates its ASM dependency to support Java 21.
In addition, the ASM dependency is now manually included in Velocity, since according to a dependency analysis, Lmbda was including ASM version 7.1 while Guice declared version 9.5 (which has Java 21 support) as an optional dependency, so the Lmbda version was included.

This change has been tested with several plugins that use Guice in a basic way (a single use of the @Inject annotation in the main class), as well as in a more complete way (declaring custom Guice AbstractModules) and with other plugins that use both ways of declaring listeners as with the @Subscribe annotation (which uses Lmbda and ASM) and the functional way

VelocityGuice600

also fixed an incorrect mention to the EventTask class in the error that arises when trying to register a listener by means of a method that has neither a void nor an EventTask as return type

@astei astei merged commit e0cf2e2 into PaperMC:dev/3.0.0 Jun 3, 2023
1 check passed
@4drian3d 4drian3d deleted the update/guice branch June 3, 2023 17:23
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.

None yet

2 participants