Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

fix: enforce plugin-required dependencies and log incompatibilities #20601

Merged
merged 1 commit into from
Dec 3, 2024

Conversation

mcollovati
Copy link
Collaborator

Description

The Flow Maven Plugin uses a class loader that combines project and plugin dependencies to ensure class scanning happens on runtime artifacts. However, plugin execution may fail if the project defines dependency versions incompatible with those used by the plugin.

This change enforces the use of plugin-defined versions for certain dependencies not directly used by Flow at runtime. Additionally, it logs potential incompatibilities for other dependencies if the build fails.

Fixes vaadin/mpr-demo#23

Type of change

  • Bugfix
  • Feature

Checklist

  • I have read the contribution guide: https://vaadin.com/docs/latest/guide/contributing/overview/
  • I have added a description following the guideline.
  • The issue is created in the corresponding repository and I have referenced it.
  • I have added tests to ensure my change is effective and works as intended.
  • New and existing tests are passing locally with my change.
  • I have performed self-review and corrected misspellings.

Additional for Feature type of change

  • Enhancement / new feature was discussed in a corresponding GitHub issue and Acceptance Criteria were created.

The Flow Maven Plugin uses a class loader that combines project and plugin
dependencies to ensure class scanning happens on runtime artifacts.
However, plugin execution may fail if the project defines dependency versions
incompatible with those used by the plugin.

This change enforces the use of plugin-defined versions for certain
dependencies not directly used by Flow at runtime. Additionally, it logs
potential incompatibilities for other dependencies if the build fails.

Fixes vaadin/mpr-demo#23
@mshabarov mshabarov requested a review from caalador December 3, 2024 10:02
Copy link

github-actions bot commented Dec 3, 2024

Test Results

1 158 files  ±0  1 158 suites  ±0   1h 33m 51s ⏱️ - 1m 48s
7 517 tests ±0  7 464 ✅ ±0  53 💤 ±0  0 ❌ ±0 
7 879 runs   - 7  7 817 ✅  - 6  62 💤  - 1  0 ❌ ±0 

Results for commit 5d7f47e. ± Comparison against base commit c2286a7.

♻️ This comment has been updated with latest results.

@mshabarov mshabarov requested review from mshabarov and removed request for caalador December 3, 2024 13:28
@mshabarov mshabarov merged commit 445a450 into main Dec 3, 2024
26 checks passed
@mshabarov mshabarov deleted the issues/mpr-demo-23-reflections_from_plugin_deps branch December 3, 2024 13:46
vaadin-bot pushed a commit that referenced this pull request Dec 3, 2024
…20601)

The Flow Maven Plugin uses a class loader that combines project and plugin
dependencies to ensure class scanning happens on runtime artifacts.
However, plugin execution may fail if the project defines dependency versions
incompatible with those used by the plugin.

This change enforces the use of plugin-defined versions for certain
dependencies not directly used by Flow at runtime. Additionally, it logs
potential incompatibilities for other dependencies if the build fails.

Fixes vaadin/mpr-demo#23
vaadin-bot pushed a commit that referenced this pull request Dec 3, 2024
…20601)

The Flow Maven Plugin uses a class loader that combines project and plugin
dependencies to ensure class scanning happens on runtime artifacts.
However, plugin execution may fail if the project defines dependency versions
incompatible with those used by the plugin.

This change enforces the use of plugin-defined versions for certain
dependencies not directly used by Flow at runtime. Additionally, it logs
potential incompatibilities for other dependencies if the build fails.

Fixes vaadin/mpr-demo#23
vaadin-bot pushed a commit that referenced this pull request Dec 3, 2024
…20601)

The Flow Maven Plugin uses a class loader that combines project and plugin
dependencies to ensure class scanning happens on runtime artifacts.
However, plugin execution may fail if the project defines dependency versions
incompatible with those used by the plugin.

This change enforces the use of plugin-defined versions for certain
dependencies not directly used by Flow at runtime. Additionally, it logs
potential incompatibilities for other dependencies if the build fails.

Fixes vaadin/mpr-demo#23
vaadin-bot added a commit that referenced this pull request Dec 3, 2024
…20601) (#20605)

The Flow Maven Plugin uses a class loader that combines project and plugin
dependencies to ensure class scanning happens on runtime artifacts.
However, plugin execution may fail if the project defines dependency versions
incompatible with those used by the plugin.

This change enforces the use of plugin-defined versions for certain
dependencies not directly used by Flow at runtime. Additionally, it logs
potential incompatibilities for other dependencies if the build fails.

Fixes vaadin/mpr-demo#23

Co-authored-by: Marco Collovati <marco@vaadin.com>
vaadin-bot added a commit that referenced this pull request Dec 3, 2024
…20601) (#20604)

The Flow Maven Plugin uses a class loader that combines project and plugin
dependencies to ensure class scanning happens on runtime artifacts.
However, plugin execution may fail if the project defines dependency versions
incompatible with those used by the plugin.

This change enforces the use of plugin-defined versions for certain
dependencies not directly used by Flow at runtime. Additionally, it logs
potential incompatibilities for other dependencies if the build fails.

Fixes vaadin/mpr-demo#23

Co-authored-by: Marco Collovati <marco@vaadin.com>
vaadin-bot added a commit that referenced this pull request Dec 3, 2024
…20601) (#20606)

The Flow Maven Plugin uses a class loader that combines project and plugin
dependencies to ensure class scanning happens on runtime artifacts.
However, plugin execution may fail if the project defines dependency versions
incompatible with those used by the plugin.

This change enforces the use of plugin-defined versions for certain
dependencies not directly used by Flow at runtime. Additionally, it logs
potential incompatibilities for other dependencies if the build fails.

Fixes vaadin/mpr-demo#23

Co-authored-by: Marco Collovati <marco@vaadin.com>
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

project not working with latest flow change
3 participants