Hi,
Just tried to use DI in Jenkins in a particular case that didn't work. Just wanted to check if this was supposed to be a supported use case and get feedback.
It's a multimodules project:
* xyz-jenkins-plugin
* library
xyz-jenkins-plugin depends on library.
In library there're two classes:
* SomeFacade (interface)
* SomeFacadeImpl (impl class, annotated @Extension)
In xyz-jenkins-plugin in a Jenkins/Sezpoz managed class, I put
public class ... {
@Inject
SomeFacade someFacade;
}
But this crashes when Jenkins starts:
1) No implementation for ...SomeFacade was bound.
while locating ..SomeFacade
for field at ...SomeUI.someFacade(Unknown Source)
Is this expected? Maybe the scanning doesn't include dependent jars?
Thanks
--
Baptiste