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

fix: support Maven system scope for dependencies #2328

Merged
merged 9 commits into from
May 20, 2024

Conversation

cromoteca
Copy link
Contributor

@cromoteca cromoteca commented Apr 15, 2024

When dependencies with scope system are added to a Hilla project, we need support from Maven, Spring Boot, and Hilla itself for them to work.

Maven support system dependencies, although deprecated. No action is needed for them to work.

Spring Boot requires enabling support explicitly. This is done by adding <includeSystemScope>true</includeSystemScope> to the spring-boot-maven-plugin configuration, for all profiles.

This PR adds support in Hilla: system dependencies can now include endpoints and entities. For the endpoints to be found, the package must be listed in the Vaadin plugin configuration as usual.

This PR needs vaadin/flow#19175 to work. ✅

Fixes #2230

Copy link

codecov bot commented Apr 15, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 95.11%. Comparing base (f851db3) to head (888d7a8).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2328   +/-   ##
=======================================
  Coverage   95.11%   95.11%           
=======================================
  Files          66       66           
  Lines        4507     4507           
  Branches      645      645           
=======================================
  Hits         4287     4287           
  Misses        179      179           
  Partials       41       41           
Flag Coverage Δ
unittests 95.11% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@cromoteca cromoteca marked this pull request as ready for review April 26, 2024 13:22
@cromoteca
Copy link
Contributor Author

Quality Gate Failed Quality Gate failed

Failed conditions D Reliability Rating on New Code (required ≥ A)

See analysis details on SonarCloud

SonarCloud is complaining about the system scope dependency I added in the test, but that's of course necessary.

Copy link

sonarcloud bot commented May 20, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@platosha platosha merged commit 016abe8 into main May 20, 2024
15 checks passed
@platosha platosha deleted the fix/2230/support-maven-system-dependency branch May 20, 2024 09:11
@vaadin-bot
Copy link
Collaborator

This ticket/PR has been released with Hilla 24.5.0.alpha1 and is also targeting the upcoming stable 24.5.0 version.

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

Successfully merging this pull request may close these issues.

support maven system dependency
3 participants