I want to write a BitBucket hook which uses the BuildStatusService to retrieve the build statuses against a particular commit. I’ve tried adding this to the constructor of my hook, but I see the following error:
Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'com.atlassian.bitbucket.build.BuildStatusService'
Does anyone have any ideas how to resolve?