In testing the Jira 8 preview (8.0.0-m0014 to be exact) with our app, we ran into a dependency injection issue. It appears spring contexts generated by Jira 8 (e.g. atlassian-plugins-host-components.xml) now have default-autowire=“constructor”, whereas Jira 7 used default-autowire=“autodetect”. This broke all beans that were using setter injection in our app.
The fix seems easy enough with the cause known (unless there are additional aspects to this I have yet to stumble upon), and at this point, we probably should get around to that spring-scanner rewrite anyway. Regardless, I was curious:
- Is the aforementioned change to default-autowire intentional or a bug?
- Are transformer-plugins to be considered legacy to the point of being deprecated/unsupported at this stage?