A plugin can no longer listen for its own PluginUninstallingEvent since Atlassian Plugins 5
Create a component that listens for its own PluginUninstallingEvent...
The DO SOME CLEANUP HERE should be executed
The plugin is disabled, and the component is destroyed, unregistering the event listener before it has chance to receive its PluginUninstallingEvent
Instead of listening for events, could your component implement com.atlassian.sal.api.lifecycle.LifecycleAware?
The semantics would be slightly different in that you would be doing your cleanup when the plugin is stopped, not uninstalled, but maybe that’s better anyway? I guess it depends on what cleanup you’re doing.
is there any way to vote for this issue? I don’t want to write +1 but…