Injecting SchedulerHistoryService causes OSGI error

I want to use the SchedulerService and the SchedulerHistoryService from the com.atlassian.scheduler package.

I can inject the SchedulerService in my constructor via @ComponentImport.
When I do the same for the SchedulerHistoryService, I get a c.a.plugin.osgi.factory.OsgiPlugin error and the plugin can not be enabled.
The log says: plugin … never resolved service ‘&schedulerHistoryService’ with filter ‘(&(objectClass=com.atlassian.scheduler.SchedulerHistoryService)(objectClass=com.atlassian.scheduler.SchedulerHistoryService))’

I use bitbucket api 5.16.10
The scheduler version is atlassian-scheduler-api-1.7.0.jar

Am I doing something wrong or is this a bug?

Hi Can you share the code snippet of injecting SchedulerService as for me it is not working.
Have you added any properties in atlassian-plugin.xml ?