-
Notifications
You must be signed in to change notification settings - Fork 175
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
feat: use single scanner for plugin class scan #21104
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would seem to work as expected.
...erver/src/main/java/com/vaadin/flow/server/frontend/scanner/FrontendDependenciesScanner.java
Show resolved
Hide resolved
@@ -366,7 +368,7 @@ public static void runNodeUpdater(PluginAdapterBuild adapter) | |||
adapter.frontendExtraFileExtensions()) | |||
.withFrontendIgnoreVersionChecks( | |||
adapter.isFrontendIgnoreVersionChecks()); | |||
new NodeTasks(options).execute(); | |||
new NodeTasks(options, frontendDependencies).execute(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps it would be cleaner/clearer to add the frontendDependencies to options and use options.getFrontendScanner() which would then init it if not given.
@@ -96,20 +96,30 @@ public class NodeTasks implements FallibleCommand { | |||
|
|||
private Path lockFile; | |||
|
|||
public NodeTasks(Options options) { | |||
this(options, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This scanner builder doesn't check the router required.
boolean reactEnabled = options.isReactEnabled() && FrontendUtils.isReactRouterRequired(options.getFrontendDirectory());
|
Fixes #21016