Guice should never have been added to Jenkins to begin with and I would not recommend using it from a plugin.
--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-de...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/CANfRfr20Sjbdqq4JEcadn8L9gYyxSOAw%3DkmO7D8Q4_1Ve-cn%3DQ%40mail.gmail.com.
--
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/CAH-3BieWpaYGqF1R4V19H1QHVFjLe8bK0_xvo1FkfuTHWbRMnQ%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/CA%2Bb6JB9pTyuOctbUVgaNED_tkY75Qi6QYzwG_ieOrjvLdW_sKw%40mail.gmail.com.
Which dependencies do you mean? Normally there is no need to use dependency injection in Jenkins at all. Typically all required objects are provided as parameters to the extension point methods.
--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-de...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/CAMo7PtJiFhOTAcMwELiuz3w9iza51DLJFF%3Df4tidnuQfzpZb-Q%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/CA%2Bb6JB-ucX5_PbO3CmUu8PiJw11Cde5%3DM9%2BuEw3SxD_YgTmfcQ%40mail.gmail.com.
Am 30.06.2021 um 13:20 schrieb Tim Jacomb <timja...@gmail.com>:If it's your code normally you would inject yourself via the constructor.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/CAH-3Bid-_j5z8DnLs3QZ%3DF0tn5RGTEGmWO_Yt%3DvE22w9HkjvJA%40mail.gmail.com.
You can stub classes with Mockito as well
though it is possible to override a singleton extension called via `ExtensionList.lookupSingleton` using the `ordinal` attribute).
though it is possible to override a singleton extension called via `ExtensionList.lookupSingleton` using the `ordinal` attribute).There can be only one (otherwise it throws an exception).