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

Always use dependency version managed by BOM when forced dependency version is not specified #1359

Conversation

michalvavrik
Copy link
Member

@michalvavrik michalvavrik commented Oct 8, 2024

Summary

Fixes CI in the quarkus-qe/quarkus-test-suite#2072. So far when a dependency version is empty we set there Quarkus version. That I think is less desirable then using managed version and we know that Quarkus extensions are managed by the BOM, so for our use cases shouldn't be breaking change. Additionally, this change allows to use managed version of forced dependencies that are not Quarkus extensions.

Changes in this PR:

  • when forced dependencies were detected, always use Quarkus Maven plugin build strategy
  • when version is not specified, always use dependency version managed by BOM

I have tested successfully this PR with all the tests that use this feature (io.quarkus.test.services.QuarkusApplication#dependencies).

Please check the relevant options

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Dependency update
  • Refactoring
  • Release (follows conventions described in the RELEASE.md)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • This change requires a documentation update
  • This change requires execution against OCP (use run tests phrase in comment)

Checklist:

  • Example scenarios has been updated / added
  • Methods and classes used in PR scenarios are meaningful
  • Commits are well encapsulated and follow the best practices

@michalvavrik
Copy link
Member Author

run tests

@michalvavrik michalvavrik force-pushed the feature/fix-forced-dependency-without-version branch from 38d2b2b to 2942f3f Compare October 8, 2024 17:36
@michalvavrik michalvavrik changed the title Support using of forced dependencies managed by BOM Always use dependency version managed by BOM when dependency version is not specified Oct 8, 2024
@michalvavrik
Copy link
Member Author

run tests

@michalvavrik michalvavrik changed the title Always use dependency version managed by BOM when dependency version is not specified Always use dependency version managed by BOM when forced dependency version is not specified Oct 8, 2024
@michalvavrik
Copy link
Member Author

I am pretty sure OCP Native failure OpenShiftAmqpAmqIT is not related. It seems like a network blips and I didn't change related behavior.

Copy link
Member

@mjurc mjurc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks.

@mjurc mjurc merged commit d9d4b84 into quarkus-qe:main Oct 8, 2024
9 of 10 checks passed
@michalvavrik michalvavrik deleted the feature/fix-forced-dependency-without-version branch October 8, 2024 22:06
@michalvavrik michalvavrik removed the triage/backport-1.5? Quarkus 3.15 stream label Oct 9, 2024
jedla97 added a commit to jedla97/quarkus-test-framework that referenced this pull request Oct 17, 2024
In case of linux we propagating all build arguments which also contain`s maven.repo.local`
This is not case on windows where we getting only specific set of them (starts withQquarkus).
when we introduced quarkus-qe#1359 it allow to build the maven separatly with propagated values and
causing problems on windows using specific repository with not accesible Quarkus versions
jedla97 added a commit to jedla97/quarkus-test-framework that referenced this pull request Oct 17, 2024
In case of linux we propagating all build arguments which also contains `maven.repo.local`.
This is not case on windows where we getting only specific set of them (starts with Quarkus).
When quarkus-qe#1359 was it start to build separatly using maven.
But when provided path to local maven repo was set as cmd argument and the artifact is not public,
causing the windows failing the build of app with that forced artifact.
jedla97 added a commit to jedla97/quarkus-test-framework that referenced this pull request Oct 17, 2024
In case of linux we propagating all build arguments which also contains `maven.repo.local`.
This is not case on windows where we getting only specific set of them (starts with Quarkus).
When quarkus-qe#1359 was introducedThe build start separatly using maven.
But when provided path to local maven repo was set as cmd argument and the artifact is not public,
causing the windows failing the build of app with that forced artifact.
michalvavrik pushed a commit that referenced this pull request Oct 17, 2024
In case of linux we propagating all build arguments which also contains `maven.repo.local`.
This is not case on windows where we getting only specific set of them (starts with Quarkus).
When #1359 was introducedThe build start separatly using maven.
But when provided path to local maven repo was set as cmd argument and the artifact is not public,
causing the windows failing the build of app with that forced artifact.
jedla97 added a commit to jedla97/quarkus-test-framework that referenced this pull request Oct 23, 2024
In case of linux we propagating all build arguments which also contains `maven.repo.local`.
This is not case on windows where we getting only specific set of them (starts with Quarkus).
When quarkus-qe#1359 was introducedThe build start separatly using maven.
But when provided path to local maven repo was set as cmd argument and the artifact is not public,
causing the windows failing the build of app with that forced artifact.

(cherry picked from commit afdcab9)
michalvavrik pushed a commit that referenced this pull request Oct 23, 2024
In case of linux we propagating all build arguments which also contains `maven.repo.local`.
This is not case on windows where we getting only specific set of them (starts with Quarkus).
When #1359 was introducedThe build start separatly using maven.
But when provided path to local maven repo was set as cmd argument and the artifact is not public,
causing the windows failing the build of app with that forced artifact.

(cherry picked from commit afdcab9)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants