You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
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:
vaadinPrepareFrontendTask
gradle task is not cached #17941.scss
and.sass
instats.json
hashes #19527FrontendDependencies
#19528filterClasspath
property/closure docs#3477filterClasspath
in Maven plugin, similar to Gradle plugin #19542The text was updated successfully, but these errors were encountered: