Permalink
Browse files

Add support for Jira 5.0

  • Loading branch information...
1 parent d76144e commit bd1cffbb8d7d5f087142b255595ab34ad9ffc33d @bretep bretep committed Feb 28, 2012
Showing with 56 additions and 19 deletions.
  1. +55 −18 contrib/jira/pom.xml
  2. +1 −1 contrib/jira/src/main/java/fm/last/jira/plugins/IrccatListener.java
View
@@ -1,36 +1,73 @@
<?xml version="1.0" encoding="UTF-8"?>
-<project xmlns="http://maven.apache.org/POM/4.0.0"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
- <parent>
- <groupId>com.atlassian.jira.plugins</groupId>
- <artifactId>jira-plugin-base</artifactId>
- <version>8</version>
- </parent>
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>fm.last.jira.plugins</groupId>
<artifactId>jira-plugin-irccat</artifactId>
- <version>1.0-SNAPSHOT</version>
+ <version>1.0</version>
+
+ <organization>
+ <name>LastFM</name>
+ <url>http://www.last.fm</url>
+ </organization>
<name>JIRA Irccat Plugin</name>
+ <description>JIRA listener plugin for IRCCat.</description>
<packaging>atlassian-plugin</packaging>
+ <dependencies>
+ <dependency>
+ <groupId>com.atlassian.jira</groupId>
+ <artifactId>jira-api</artifactId>
+ <version>${jira.version}</version>
+ <scope>provided</scope>
+ </dependency>
+ </dependencies>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>com.atlassian.maven.plugins</groupId>
+ <artifactId>maven-jira-plugin</artifactId>
+ <version>3.8</version>
+ <extensions>true</extensions>
+ <configuration>
+ <productVersion>${jira.version}</productVersion>
+ <productDataVersion>${jira.version}</productDataVersion>
+ </configuration>
+ </plugin>
+ <plugin>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <configuration>
+ <source>1.6</source>
+ <target>1.6</target>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+
+ <parent>
+ <groupId>com.atlassian.jira.plugins</groupId>
+ <artifactId>jira-plugin-base</artifactId>
+ <version>8</version>
+ </parent>
<properties>
+ <jira.version>5.0</jira.version>
+ <amps.version>3.8</amps.version>
<atlassian.plugin.key>fm.last.jira.plugins.jira-plugin-irccat</atlassian.plugin.key>
<atlassian.product.version>3.13</atlassian.product.version>
<atlassian.product.test-lib.version>3.13</atlassian.product.test-lib.version>
<atlassian.product.data.version>3.13</atlassian.product.data.version>
</properties>
- <description>JIRA listener plugin for IRCCat.</description>
- <url>http://www.last.fm</url>
-
- <developers>
- <developer>
- <name>Russ Garrett</name>
- <organization>Last.fm Ltd.</organization>
- </developer>
- </developers>
+
+ <developers>
+ <developer>
+ <name>Russ Garrett</name>
+ <organization>Last.fm Ltd.</organization>
+ </developer>
+ </developers>
+
</project>
+
@@ -74,7 +74,7 @@ public void workflowEvent(IssueEvent event) {
sb.append(" ");
sb.append(ComponentManager.getInstance().getEventTypeManager().getEventType(event.getEventTypeId()).getName().toLowerCase());
sb.append(" by ");
- sb.append(event.getRemoteUser().getName());
+ sb.append(event.getUser().getName());
if (event.getComment() != null && event.getComment().getBody().length() > 0) {
sb.append(" \"");
sb.append(StringUtils.abbreviate(event.getComment().getBody(), 100));

0 comments on commit bd1cffb

Please sign in to comment.