-
Notifications
You must be signed in to change notification settings - Fork 127
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
[MRESOLVER-397] Deprecate Guice integration #328
Conversation
Lowering the provided instantiation support from 3 to 2, to lower resources for maintenance all these. SL is about to be dropped, Guice same. Users should either use Sisu or use the new Supplier. --- https://issues.apache.org/jira/browse/MRESOLVER-397
Sisu is using guice anyway... Are there any Sisu specific things that would prevent the resolver to be used by any jsr-330 implementation ? |
Yes, Sisu is built on "top" of Guice, and offers two-way passage, basically whoever uses Guice should be able to use Resolver by just throwing Sisu JAR in there as well. As for "any jsr-330 implementation", am really unsure. Anyway, the point of whole effort is:
We have no resources to maintain several integrations that we are not even sure, are they used or not. We should offer only 2, one DI/Sisu and one "pure java" (supplier) and done. |
Hi @cstamas, we are currently relying on this deprecated functionality in the Jenkins Acceptance Test Harness (ATH), a Guice-based project that also uses Maven Resolver to fetch Jenkins plugins for tesitng purposes. The relevant functionality is here: https://github.com/jenkinsci/acceptance-test-harness/blob/9b7b87da2b1d5873876d156756f8849b26fcbc16/src/main/java/org/jenkinsci/test/acceptance/utils/aether/AetherModule.java Thank you very much for including this note:
However, I am not sure whether Sisu or Maven Resolver Supplier would be better for our use case. Since we are already using Guice, would Sisu be the preferred migration path? And if so, are there any examples you could point to? |
@cstamas This is a test framework, so the added Sisu dependency would be fine for us. Thanks for confirming that Sisu is the preferred migration path for heavy Guice users. As far as building instructions, https://github.com/jenkinsci/acceptance-test-harness/blob/master/docs/DOCKER.md is the best place to start. For testing Guice integration, you could probably even avoid Docker and simply use e.g. |
@basil something along these lines? jenkinsci/acceptance-test-harness#1733 |
Lowering the provided instantiation support from 3 to 2, to lower resources for maintenance all these.
SL is about to be dropped, Guice same. Users should either use Sisu or use the new Supplier.
https://issues.apache.org/jira/browse/MRESOLVER-397