Updateing plugin for Server 10

Hi there,

I am trying to update my plugin for Jira Server 10.

Looks like there are some packages that are not compatible anymore, is there a list of packages that need to be replaced?

For example when I try to install this plugin I am getting this error:

Plugin  failed to load.
[INFO] [talledLocalContainer]                   Error creating bean with name 'compatibilityPluginScheduler' defined in URL [bundle://1e6ec75a-175e-4abb-8b95-ea6a50c9f36a_182.0:0/META-INF/spring/atlassian-plugins-components.xml]: Bean instantiation via constructor failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.atlassian.scheduler.compat.clustered.ClusteredCompatibilityPluginScheduler]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: com/atlassian/util/concurrent/Assertions
[INFO] [talledLocalContainer]                           Failed to instantiate [com.atlassian.scheduler.compat.clustered.ClusteredCompatibilityPluginScheduler]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: com/atlassian/util/concurrent/Assertions
[INFO] [talledLocalContainer]                                   com/atlassian/util/concurrent/Assertions
[INFO] [talledLocalContainer]                                           com.atlassian.util.concurrent.Assertions not found by 

Does it mean I need to replace the atlassian-scheduler-compat?

And how to add this new component into atassian-plugin.xml?
When I add:

<component class="com.atlassian.scheduler.core.DefaultSchedulerService" key="schedulerService" public="false">
        <interface>com.atlassian.scheduler.SchedulerService</interface>
    </component>

    <component class="com.atlassian.scheduler.config.JobConfig" key="schedulerConfig" public="false"/>

I am getting:

 Error creating bean with name 'schedulerConfig' defined in URL [bundle://2d7b2a28-a4ac-4dc6-a936-8f24c9ac6bf5_182.0:0/META-INF/spring/atlassian-plugins-components.xml]: Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'com.atlassian.scheduler.config.JobRunnerKey' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {}
[INFO] [talledLocalContainer]                           No qualifying bean of type 'com.atlassian.scheduler.config.JobRunnerKey' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {}

Thank you

@JanAmbroz1
when upgrading to Jira Server 10, some internal APIs—especially around scheduling and concurrency—have been removed or relocated.

The Scheduler Moved to Core Library Atlassian now encourages using the modern com.atlassian.scheduler API directly—instead of the old compatibility shim (atlassian-scheduler-compat).

Migrate to Core Scheduler APIs Use the new com.atlassian.scheduler.core and related packages. For example:

  • DefaultSchedulerService
  • JobConfig
  • JobRunnerKey

Cheers,
Daniel