When the SDK creates a plugin, it comment the com.atlassian.jira.jira-core dependency:
<!-- Add dependency on jira-core if you want access to JIRA implementation classes as well as the sanctioned API. -->
<!-- This is not normally recommended, but may be required eg when migrating a plugin originally developed against JIRA 4.x -->
Why is this normally not recommended and what are the downsides?
I want to use SelectCFType from it.
Getting that dependency allows your code to reference direct classes at a lower level that the recommended by using services and manager interfaces.
I think that the downside is related to the grade of coupling your code will had with atlassian's api.
Sometimes, if you need to reference concrete classes, for example to inherit from them, this is required.
Just for you to know, i just try to remove this dependency in a custom mail handler i have that uses SelectCFType:
Then i cannot use concrete classes:
Badges are a great way to show off community activity, whether you’re a newbie or a Champion.Learn more
Hi Atlassian Community! My name is Shana, and I’m on the Jira Software team. One of the many reasons this Community exists is to connect you to others on similar product journeys or with comparabl...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs