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

Consider switching from Reflections to a maintained library #19543

Open
oliveryasuna opened this issue Jun 8, 2024 · 0 comments
Open

Consider switching from Reflections to a maintained library #19543

oliveryasuna opened this issue Jun 8, 2024 · 0 comments

Comments

@oliveryasuna
Copy link
Contributor

oliveryasuna commented Jun 8, 2024

Describe your motivation

While recently investigating the Gradle plugin, I noticed that the Maven plugin uses the Reflections library to scan the classpath. While I think it would be best to implement something similar to the Gradle plugin (see this issue), if not that, Vaadin should consider switching from Reflections.

Reflections is no longer maintained as of October 2021. Further, it does not support caching, which, if used properly, could greatly speed up the build frontend goal.

Personally, my team and I do not use Maven, and rather use Gradle. However, I imagine many Vaadin users still use Maven and could also benefit from this feature.

Describe the solution you'd like

Vaadin should consider alternative and actively maintained libraries similar to Reflections. Further, it would be beneficial to pick one that supports caching out-of-the-box.

Personally, we use ClassGraph. It is super fast. Not sure if it supports caching, though. The Spring Framework also has ClassPathScanningCandidateComponentProvider, which is very easy to use and very fast.

Additional context

This idea came from our recent endeavour to speed up builds. Relevant issues:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants