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

Filter classpath scanning for FrontendDependencies #19528

Closed
oliveryasuna opened this issue Jun 7, 2024 · 2 comments
Closed

Filter classpath scanning for FrontendDependencies #19528

oliveryasuna opened this issue Jun 7, 2024 · 2 comments

Comments

@oliveryasuna
Copy link
Contributor

oliveryasuna commented Jun 7, 2024

Describe your motivation

Large projects may have 100s of dependencies. It may not be necessary to scan all of these to find frontend configurations and dependencies. In particular, it takes the Vaadin Gradle plugin's vaadinBuildFrontend task 30+ seconds to scan our project. I assume it would be the same/similar with the Maven plugin, as they share code.

Describe the solution you'd like

Add a configuration property to whitelist dependency JARs and packages. Packages too because some packages in main may contain business-only code and have nothing to do with Vaadin.

This could be a huge win for enterprise applications.

Context

In lieu of Vaadin's proper Gradle caching support, we are attempting to speed up builds. #17941

@oliveryasuna
Copy link
Contributor Author

oliveryasuna commented Jun 7, 2024

Does this actually already exist but is undocumented? VaadinFlowPluginExtension#classpathFilter?

@oliveryasuna
Copy link
Contributor Author

I was able to use this undocumented feature and opened some relevant issues:

Closing this issue.

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

No branches or pull requests

1 participant