From c11275cc63ef1406654dbbfdb67c4e75d37a96d1 Mon Sep 17 00:00:00 2001 From: Imsandli Date: Fri, 7 Jul 2023 14:35:01 +0200 Subject: [PATCH] Compile against Jira (LTS) 9.4.4 Api minimal change to run the plugin against Jira 9.4.4+ Fixes: https://github.com/MeetMe/jira-gerrit-plugin/issues/93 --- pom.xml | 17 ++++++++++++----- .../gerrit/tabpanel/GerritReviewsTabPanel.java | 2 +- 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/pom.xml b/pom.xml index cd5694f..ac0a4bc 100644 --- a/pom.xml +++ b/pom.xml @@ -174,6 +174,13 @@ commons-fileupload commons-fileupload 1.3 + provided + + + org.apache.httpcomponents + httpclient + 4.5.13 + provided @@ -181,7 +188,7 @@ com.atlassian.maven.plugins - maven-jira-plugin + jira-maven-plugin ${amps.version} true @@ -232,15 +239,15 @@ - 7.2.0 - 6.3.21 + 9.4.4 + 8.10.1 1.2.3 ${project.groupId}.${project.artifactId} 6.3.11 1.30.5 - 7.2.0 - 7.2.0 + 9.4.4 + 9.4.4 3.0.8 3.0.0 3.0.0 diff --git a/src/main/java/com/meetme/plugins/jira/gerrit/tabpanel/GerritReviewsTabPanel.java b/src/main/java/com/meetme/plugins/jira/gerrit/tabpanel/GerritReviewsTabPanel.java index 6bca796..a034b02 100644 --- a/src/main/java/com/meetme/plugins/jira/gerrit/tabpanel/GerritReviewsTabPanel.java +++ b/src/main/java/com/meetme/plugins/jira/gerrit/tabpanel/GerritReviewsTabPanel.java @@ -146,7 +146,7 @@ private ApplicationUser getUserByEmail(String email) { if (user == null) user = UserUtils.getUserByEmail(email); if (user == null) { - for (ApplicationUser iUser : userManager.getUsers()) { + for (ApplicationUser iUser : userSearchService.findUsersByEmail(email)) { if (email.equalsIgnoreCase(iUser.getEmailAddress())) { user = iUser; break;