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

feat: use single scanner for plugin class scan #21104

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

tepi
Copy link
Contributor

@tepi tepi commented Mar 7, 2025

Fixes #21016

Copy link

github-actions bot commented Mar 7, 2025

Test Results

1 169 files  ± 0  1 169 suites  ±0   1h 13m 24s ⏱️ - 1m 45s
7 779 tests ± 0  7 722 ✅ ± 0  57 💤 ±0  0 ❌ ±0 
8 111 runs   - 29  8 045 ✅  - 29  66 💤 ±0  0 ❌ ±0 

Results for commit 8954868. ± Comparison against base commit 9668a79.

♻️ This comment has been updated with latest results.

@tepi tepi marked this pull request as draft March 7, 2025 16:44
@tepi tepi marked this pull request as ready for review March 10, 2025 07:45
Copy link
Contributor

@caalador caalador left a 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.

@@ -366,7 +368,7 @@ public static void runNodeUpdater(PluginAdapterBuild adapter)
adapter.frontendExtraFileExtensions())
.withFrontendIgnoreVersionChecks(
adapter.isFrontendIgnoreVersionChecks());
new NodeTasks(options).execute();
new NodeTasks(options, frontendDependencies).execute();
Copy link
Contributor

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,
Copy link
Contributor

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());

@vaadin-bot vaadin-bot added +0.1.0 and removed +1.0.0 labels Mar 10, 2025
@vaadin-bot vaadin-bot added +1.0.0 and removed +0.1.0 labels Mar 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

vaadin-maven-plugin scans twice
3 participants