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

Automatically discover dependencies from a published product #3497

Merged

Conversation

laeubi
Copy link
Member

@laeubi laeubi commented Feb 10, 2024

Currently the publis-products mojo is only fully usable in the eclipse-repository packaging type but there are other use-cases where it becomes interesting to publish the product metadata and further use it, for example in an p2 installed runtime. Even though it works to use the mojos it is quite inconvenient as one has to specify all its requirements manually as extra dependencies.

This adds a new PublishProduct P2 unit providers that collect the dependencies from a product and supply them automatically as requirements to the project so the mojo can be used without having missed dependencies from the target.

@laeubi laeubi added the backport-to-tycho-4.0.x Can be added to a PR to trigger an automatic backport of the change label Feb 10, 2024
Currently the publis-products mojo is only fully usable in the
eclipse-repository packaging type but there are other use-cases where it
becomes interesting to publish the product metadata and further use it,
for example in an p2 installed runtime. Even though it works to use the
mojos it is quite inconvenient as one has to specify all its
requirements manually as extra dependencies.

This adds a new PublishProduct P2 unit providers that collect the
dependencies from a product and supply them automatically as
requirements to the project so the mojo can be used without having
missed dependencies from the target.
@laeubi laeubi force-pushed the automatic_discover_published_products branch from 64cfe18 to 30fda45 Compare February 10, 2024 14:48
Copy link

Test Results

  585 files  ±0    585 suites  ±0   3h 57m 23s ⏱️ + 7m 52s
  394 tests ±0    387 ✅ ±0   7 💤 ±0  0 ❌ ±0 
1 182 runs  ±0  1 160 ✅ ±0  22 💤 ±0  0 ❌ ±0 

Results for commit 30fda45. ± Comparison against base commit b0d1fc3.

@laeubi laeubi enabled auto-merge (rebase) February 10, 2024 16:37
@laeubi laeubi merged commit 803f7eb into eclipse-tycho:main Feb 10, 2024
11 checks passed
Copy link

💔 All backports failed

Status Branch Result
tycho-4.0.x Backport failed because of merge conflicts

Manual backport

To create the backport manually run:

backport --pr 3497

Questions ?

Please refer to the Backport tool documentation and see the Github Action logs for details

@laeubi laeubi added backport-to-tycho-4.0.x Can be added to a PR to trigger an automatic backport of the change and removed backport-to-tycho-4.0.x Can be added to a PR to trigger an automatic backport of the change labels Feb 10, 2024
Copy link

💔 All backports failed

Status Branch Result
tycho-4.0.x Backport failed because of merge conflicts

Manual backport

To create the backport manually run:

backport --pr 3497

Questions ?

Please refer to the Backport tool documentation and see the Github Action logs for details

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-to-tycho-4.0.x Can be added to a PR to trigger an automatic backport of the change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant