I'm upgrading from Jira 4.1.1 to latest version.
I'm doing my first step modifying the source code of our custom plugins but I'm not able to get rid of the "deprecated" warning about the User class.
If I did no misunderstanding, I'm using the SDK 6.2.8 and in my my pom.xml I've the dependencies from jira-api-4.4.5 and jira-core-4.4.5.jar
So I modified the deprecated com.opensymphony.user.User to the new com.atlassian.crowd.embedded.api.User but, when I'm going to check classes extending AbstractJiraCondition I have the shouldDisplay method still using deprecated com.opensymphony.user.User as described here in docs
Where am I wrong ? Am I missing something ?
Thanks for replying
Hi,
I suppose you should update your jira-api and -core dependencies at your pom.xml to the latest.
But they depends on jira.version tag.
In my pom.xml I have:
<dependency>
<groupId>com.atlassian.jira</groupId>
<artifactId>jira-api</artifactId>
<version>${jira.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.atlassian.jira</groupId>
<artifactId>jira-core</artifactId>
<version>${jira.version}</version>
<scope>provided</scope>
</dependency>
And in jira.version tag I set:
<jira.version>4.4.5</jira.version>
that is the version through which I'm trying to rebuild the old plugins.
I got the pom.xml executing atlas-create-jira-plugin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.