diff --git a/feature/feature.xml b/feature/feature.xml index 5448ac3..666d487 100644 --- a/feature/feature.xml +++ b/feature/feature.xml @@ -2,7 +2,7 @@ diff --git a/feature/pom.xml b/feature/pom.xml index 3b56d5f..c957f1b 100644 --- a/feature/pom.xml +++ b/feature/pom.xml @@ -7,7 +7,7 @@ org.jazzcommunity.GitConnectorService org.jazzcommunity.GitConnectorService.parent - 1.6.4-SNAPSHOT + 1.7.1-SNAPSHOT ../ diff --git a/plugin/META-INF/MANIFEST.MF b/plugin/META-INF/MANIFEST.MF index 850177a..77ee71b 100644 --- a/plugin/META-INF/MANIFEST.MF +++ b/plugin/META-INF/MANIFEST.MF @@ -2,7 +2,7 @@ Manifest-Version: 1.0 Bundle-ManifestVersion: 2 Bundle-Name: org.jazzcommunity.GitConnectorService Bundle-SymbolicName: org.jazzcommunity.GitConnectorService;singleton:=true -Bundle-Version: 1.6.4.qualifier +Bundle-Version: 1.7.1.qualifier Bundle-Vendor: VENDOR Bundle-RequiredExecutionEnvironment: JavaSE-1.7 Require-Bundle: diff --git a/plugin/pom.xml b/plugin/pom.xml index c514513..f32893d 100644 --- a/plugin/pom.xml +++ b/plugin/pom.xml @@ -7,7 +7,7 @@ org.jazzcommunity.GitConnectorService org.jazzcommunity.GitConnectorService.parent - 1.6.4-SNAPSHOT + 1.7.1-SNAPSHOT ../ diff --git a/plugin/src/main/java/org/jazzcommunity/GitConnectorService/GitConnectorService.java b/plugin/src/main/java/org/jazzcommunity/GitConnectorService/GitConnectorService.java index 92ec963..c8b9374 100644 --- a/plugin/src/main/java/org/jazzcommunity/GitConnectorService/GitConnectorService.java +++ b/plugin/src/main/java/org/jazzcommunity/GitConnectorService/GitConnectorService.java @@ -1,11 +1,12 @@ package org.jazzcommunity.GitConnectorService; import com.siemens.bt.jazz.services.base.BaseService; -import org.jazzcommunity.GitConnectorService.builder.VersionService; -import org.jazzcommunity.GitConnectorService.builder.gitlab.IssueLinkService; -import org.jazzcommunity.GitConnectorService.builder.gitlab.IssuePreviewService; -import org.jazzcommunity.GitConnectorService.builder.gitlab.RequestLinkService; -import org.jazzcommunity.GitConnectorService.builder.gitlab.RequestPreviewService; +import org.jazzcommunity.GitConnectorService.service.VersionService; +import org.jazzcommunity.GitConnectorService.service.gitlab.IssueLinkService; +import org.jazzcommunity.GitConnectorService.service.gitlab.IssuePreviewService; +import org.jazzcommunity.GitConnectorService.service.gitlab.RequestLinkService; +import org.jazzcommunity.GitConnectorService.service.gitlab.RequestPreviewService; +import org.jazzcommunity.GitConnectorService.service.resource.ImageService; /** * Entry point for the Service, called by the Jazz class loader. @@ -39,6 +40,10 @@ public GitConnectorService() { "info/version", VersionService.class); + router.get( + "img/{filename}", + ImageService.class); + /** * This code is purposely commented out and not deleted! * We have decided to use the IBM rich hovers for now, but potential support will remain built into diff --git a/plugin/src/main/java/org/jazzcommunity/GitConnectorService/oslc/mapping/IssueMapper.java b/plugin/src/main/java/org/jazzcommunity/GitConnectorService/oslc/mapping/IssueMapper.java index a72859d..bf07e4c 100644 --- a/plugin/src/main/java/org/jazzcommunity/GitConnectorService/oslc/mapping/IssueMapper.java +++ b/plugin/src/main/java/org/jazzcommunity/GitConnectorService/oslc/mapping/IssueMapper.java @@ -23,8 +23,8 @@ private IssueMapper() { * entities in its representation. * *

- * see http://modelmapper.org/user-manual/property-mapping/ for documentation on the - * convention of passing null when using a custom converter. + * see http://modelmapper.org/user-manual/property-mapping/ for documentation on the + * convention of passing null when using a custom converter. *

* * @param issue The Gitlab issue to map @@ -33,7 +33,9 @@ private IssueMapper() { */ public static OslcIssue map(Issue issue, URL self, String baseUrl) { final String link = self.toString(); - final String iconUrl = String.format("%sweb/com.ibm.team.git.web/ui/internal/images/page/git_commit_desc_16.gif", baseUrl); + final String iconUrl = String.format( + "%sservice/org.jazzcommunity.GitConnectorService.IGitConnectorService/img/issue_gitlab_16x16.png", + baseUrl); // This mapping needs to be handled outside of the property map, because // of how ModelMapper determines type mappings using reflection. Moving // the ContributorBuilder invocation inside the TypeMap will always fail @@ -121,7 +123,8 @@ protected void configure() { assignee, GitCmAssignee.class)); // Assignees - Type assignees = new TypeToken>() {}.getType(); + Type assignees = new TypeToken>() { + }.getType(); using(TypeConverter.to(assignees)) .map(source.getAssignees()) .setGitCmAssignees(null); diff --git a/plugin/src/main/java/org/jazzcommunity/GitConnectorService/oslc/mapping/MergeRequestMapper.java b/plugin/src/main/java/org/jazzcommunity/GitConnectorService/oslc/mapping/MergeRequestMapper.java index de226b9..fac3a47 100644 --- a/plugin/src/main/java/org/jazzcommunity/GitConnectorService/oslc/mapping/MergeRequestMapper.java +++ b/plugin/src/main/java/org/jazzcommunity/GitConnectorService/oslc/mapping/MergeRequestMapper.java @@ -20,7 +20,9 @@ private MergeRequestMapper() { // iconurl should probably already be passed in here... public static OslcMergeRequest map(MergeRequest request, URL self, String baseUrl) { final String link = self.toString(); - final String iconUrl = String.format("%sweb/com.ibm.team.git.web/ui/internal/images/page/git_commit_desc_16.gif", baseUrl); + final String iconUrl = String.format( + "%sservice/org.jazzcommunity.GitConnectorService.IGitConnectorService/img/request_gitlab_16x16.png", + baseUrl); final ContributorPrototype contributor = new ContributorPrototype( request.getAuthor().getName(), request.getAuthor().getWebUrl()); diff --git a/plugin/src/main/java/org/jazzcommunity/GitConnectorService/builder/VersionService.java b/plugin/src/main/java/org/jazzcommunity/GitConnectorService/service/VersionService.java similarity index 87% rename from plugin/src/main/java/org/jazzcommunity/GitConnectorService/builder/VersionService.java rename to plugin/src/main/java/org/jazzcommunity/GitConnectorService/service/VersionService.java index 30edf11..ff47f78 100644 --- a/plugin/src/main/java/org/jazzcommunity/GitConnectorService/builder/VersionService.java +++ b/plugin/src/main/java/org/jazzcommunity/GitConnectorService/service/VersionService.java @@ -1,6 +1,8 @@ -package org.jazzcommunity.GitConnectorService.builder; +package org.jazzcommunity.GitConnectorService.service; -import com.google.gson.*; +import com.google.common.net.MediaType; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; import com.ibm.team.repository.service.TeamRawService; import com.siemens.bt.jazz.services.base.rest.parameters.PathParameters; import com.siemens.bt.jazz.services.base.rest.parameters.RestRequest; @@ -24,6 +26,7 @@ public VersionService(Log log, HttpServletRequest request, HttpServletResponse r @Override public void execute() throws Exception { Version version = FrameworkUtil.getBundle(getClass()).getVersion(); + response.setContentType(MediaType.JSON_UTF_8.toString()); response.getWriter().write(gson.toJson(new VersionAdapter(version))); } diff --git a/plugin/src/main/java/org/jazzcommunity/GitConnectorService/builder/github/IssueLinkService.java b/plugin/src/main/java/org/jazzcommunity/GitConnectorService/service/github/IssueLinkService.java similarity index 97% rename from plugin/src/main/java/org/jazzcommunity/GitConnectorService/builder/github/IssueLinkService.java rename to plugin/src/main/java/org/jazzcommunity/GitConnectorService/service/github/IssueLinkService.java index f3d4674..acfdb9f 100644 --- a/plugin/src/main/java/org/jazzcommunity/GitConnectorService/builder/github/IssueLinkService.java +++ b/plugin/src/main/java/org/jazzcommunity/GitConnectorService/service/github/IssueLinkService.java @@ -1,4 +1,4 @@ -package org.jazzcommunity.GitConnectorService.builder.github; +package org.jazzcommunity.GitConnectorService.service.github; import com.google.gson.JsonObject; import com.ibm.team.repository.service.TeamRawService; diff --git a/plugin/src/main/java/org/jazzcommunity/GitConnectorService/builder/github/IssuePreviewService.java b/plugin/src/main/java/org/jazzcommunity/GitConnectorService/service/github/IssuePreviewService.java similarity index 96% rename from plugin/src/main/java/org/jazzcommunity/GitConnectorService/builder/github/IssuePreviewService.java rename to plugin/src/main/java/org/jazzcommunity/GitConnectorService/service/github/IssuePreviewService.java index 9ea7cd6..7a4c349 100644 --- a/plugin/src/main/java/org/jazzcommunity/GitConnectorService/builder/github/IssuePreviewService.java +++ b/plugin/src/main/java/org/jazzcommunity/GitConnectorService/service/github/IssuePreviewService.java @@ -1,4 +1,4 @@ -package org.jazzcommunity.GitConnectorService.builder.github; +package org.jazzcommunity.GitConnectorService.service.github; import com.google.gson.JsonObject; import com.ibm.team.repository.service.TeamRawService; diff --git a/plugin/src/main/java/org/jazzcommunity/GitConnectorService/builder/github/RequestLinkService.java b/plugin/src/main/java/org/jazzcommunity/GitConnectorService/service/github/RequestLinkService.java similarity index 97% rename from plugin/src/main/java/org/jazzcommunity/GitConnectorService/builder/github/RequestLinkService.java rename to plugin/src/main/java/org/jazzcommunity/GitConnectorService/service/github/RequestLinkService.java index e004d1d..cb3e130 100644 --- a/plugin/src/main/java/org/jazzcommunity/GitConnectorService/builder/github/RequestLinkService.java +++ b/plugin/src/main/java/org/jazzcommunity/GitConnectorService/service/github/RequestLinkService.java @@ -1,4 +1,4 @@ -package org.jazzcommunity.GitConnectorService.builder.github; +package org.jazzcommunity.GitConnectorService.service.github; import com.google.gson.JsonObject; import com.ibm.team.repository.service.TeamRawService; diff --git a/plugin/src/main/java/org/jazzcommunity/GitConnectorService/builder/github/RequestPreviewService.java b/plugin/src/main/java/org/jazzcommunity/GitConnectorService/service/github/RequestPreviewService.java similarity index 93% rename from plugin/src/main/java/org/jazzcommunity/GitConnectorService/builder/github/RequestPreviewService.java rename to plugin/src/main/java/org/jazzcommunity/GitConnectorService/service/github/RequestPreviewService.java index de3e24f..c6df75f 100644 --- a/plugin/src/main/java/org/jazzcommunity/GitConnectorService/builder/github/RequestPreviewService.java +++ b/plugin/src/main/java/org/jazzcommunity/GitConnectorService/service/github/RequestPreviewService.java @@ -1,4 +1,4 @@ -package org.jazzcommunity.GitConnectorService.builder.github; +package org.jazzcommunity.GitConnectorService.service.github; import com.ibm.team.repository.service.TeamRawService; import com.siemens.bt.jazz.services.base.rest.parameters.PathParameters; diff --git a/plugin/src/main/java/org/jazzcommunity/GitConnectorService/builder/gitlab/CommitLinkService.java b/plugin/src/main/java/org/jazzcommunity/GitConnectorService/service/gitlab/CommitLinkService.java similarity index 98% rename from plugin/src/main/java/org/jazzcommunity/GitConnectorService/builder/gitlab/CommitLinkService.java rename to plugin/src/main/java/org/jazzcommunity/GitConnectorService/service/gitlab/CommitLinkService.java index d37617e..b6c82f4 100644 --- a/plugin/src/main/java/org/jazzcommunity/GitConnectorService/builder/gitlab/CommitLinkService.java +++ b/plugin/src/main/java/org/jazzcommunity/GitConnectorService/service/gitlab/CommitLinkService.java @@ -1,4 +1,4 @@ -package org.jazzcommunity.GitConnectorService.builder.gitlab; +package org.jazzcommunity.GitConnectorService.service.gitlab; import ch.sbi.minigit.gitlab.GitlabApi; import ch.sbi.minigit.type.gitlab.commit.Commit; diff --git a/plugin/src/main/java/org/jazzcommunity/GitConnectorService/builder/gitlab/CommitPreviewService.java b/plugin/src/main/java/org/jazzcommunity/GitConnectorService/service/gitlab/CommitPreviewService.java similarity index 97% rename from plugin/src/main/java/org/jazzcommunity/GitConnectorService/builder/gitlab/CommitPreviewService.java rename to plugin/src/main/java/org/jazzcommunity/GitConnectorService/service/gitlab/CommitPreviewService.java index 924c768..fdfb05c 100644 --- a/plugin/src/main/java/org/jazzcommunity/GitConnectorService/builder/gitlab/CommitPreviewService.java +++ b/plugin/src/main/java/org/jazzcommunity/GitConnectorService/service/gitlab/CommitPreviewService.java @@ -1,4 +1,4 @@ -package org.jazzcommunity.GitConnectorService.builder.gitlab; +package org.jazzcommunity.GitConnectorService.service.gitlab; import ch.sbi.minigit.gitlab.GitlabApi; import ch.sbi.minigit.type.gitlab.commit.Commit; diff --git a/plugin/src/main/java/org/jazzcommunity/GitConnectorService/builder/gitlab/IssueLinkService.java b/plugin/src/main/java/org/jazzcommunity/GitConnectorService/service/gitlab/IssueLinkService.java similarity index 92% rename from plugin/src/main/java/org/jazzcommunity/GitConnectorService/builder/gitlab/IssueLinkService.java rename to plugin/src/main/java/org/jazzcommunity/GitConnectorService/service/gitlab/IssueLinkService.java index 5393e69..30af955 100644 --- a/plugin/src/main/java/org/jazzcommunity/GitConnectorService/builder/gitlab/IssueLinkService.java +++ b/plugin/src/main/java/org/jazzcommunity/GitConnectorService/service/gitlab/IssueLinkService.java @@ -1,7 +1,8 @@ -package org.jazzcommunity.GitConnectorService.builder.gitlab; +package org.jazzcommunity.GitConnectorService.service.gitlab; import ch.sbi.minigit.gitlab.GitlabApi; import ch.sbi.minigit.type.gitlab.issue.Issue; +import com.google.common.net.MediaType; import com.google.gson.Gson; import com.google.gson.GsonBuilder; import com.ibm.team.repository.service.TeamRawService; @@ -56,16 +57,15 @@ private void sendOslcResponse(Issue issue, GitServiceArtifact parameters) throws Gson gson = new GsonBuilder().serializeNulls().create(); String json = gson.toJson(oslcPayload); - response.setContentType(ContentType.APPLICATION_JSON.toString()); + response.setContentType(MediaType.JSON_UTF_8.toString()); response.setHeader("OSLC-Core-Version", "2.0"); response.getWriter().write(json); } private void sendLinkResponse(Issue issue, GitServiceArtifact parameters) throws IOException { URL preview = UrlBuilder.getPreviewUrl(parentService, parameters, "issue"); - - // TODO: Find a nice way of handling static resources? - String icon = String.format("%sweb/com.ibm.team.git.web/ui/internal/images/page/git_commit_desc_16.gif", + String icon = String.format( + "%sservice/org.jazzcommunity.GitConnectorService.IGitConnectorService/img/issue_gitlab_16x16.png", parentService.getRequestRepositoryURL()); JtwigTemplate template = JtwigTemplate.classpathTemplate("templates/xml/issue_link.twig"); diff --git a/plugin/src/main/java/org/jazzcommunity/GitConnectorService/builder/gitlab/IssuePreviewService.java b/plugin/src/main/java/org/jazzcommunity/GitConnectorService/service/gitlab/IssuePreviewService.java similarity index 96% rename from plugin/src/main/java/org/jazzcommunity/GitConnectorService/builder/gitlab/IssuePreviewService.java rename to plugin/src/main/java/org/jazzcommunity/GitConnectorService/service/gitlab/IssuePreviewService.java index e4092ce..ad067cc 100644 --- a/plugin/src/main/java/org/jazzcommunity/GitConnectorService/builder/gitlab/IssuePreviewService.java +++ b/plugin/src/main/java/org/jazzcommunity/GitConnectorService/service/gitlab/IssuePreviewService.java @@ -1,4 +1,4 @@ -package org.jazzcommunity.GitConnectorService.builder.gitlab; +package org.jazzcommunity.GitConnectorService.service.gitlab; import ch.sbi.minigit.gitlab.GitlabApi; import ch.sbi.minigit.type.gitlab.issue.Issue; diff --git a/plugin/src/main/java/org/jazzcommunity/GitConnectorService/builder/gitlab/RequestLinkService.java b/plugin/src/main/java/org/jazzcommunity/GitConnectorService/service/gitlab/RequestLinkService.java similarity index 92% rename from plugin/src/main/java/org/jazzcommunity/GitConnectorService/builder/gitlab/RequestLinkService.java rename to plugin/src/main/java/org/jazzcommunity/GitConnectorService/service/gitlab/RequestLinkService.java index 309b450..45a193c 100644 --- a/plugin/src/main/java/org/jazzcommunity/GitConnectorService/builder/gitlab/RequestLinkService.java +++ b/plugin/src/main/java/org/jazzcommunity/GitConnectorService/service/gitlab/RequestLinkService.java @@ -1,7 +1,8 @@ -package org.jazzcommunity.GitConnectorService.builder.gitlab; +package org.jazzcommunity.GitConnectorService.service.gitlab; import ch.sbi.minigit.gitlab.GitlabApi; import ch.sbi.minigit.type.gitlab.mergerequest.MergeRequest; +import com.google.common.net.MediaType; import com.google.gson.Gson; import com.google.gson.GsonBuilder; import com.ibm.team.repository.service.TeamRawService; @@ -56,15 +57,15 @@ private void sendOslcResponse(MergeRequest mergeRequest, GitServiceArtifact para Gson gson = new GsonBuilder().serializeNulls().create(); String json = gson.toJson(oslcRequest); - response.setContentType(ContentType.APPLICATION_JSON.toString()); + response.setContentType(MediaType.JSON_UTF_8.toString()); response.setHeader("OSLC-Core-Version", "2.0"); response.getWriter().write(json); } private void sendLinkResponse(MergeRequest request, GitServiceArtifact parameters) throws IOException { URL preview = UrlBuilder.getPreviewUrl(parentService, parameters, "merge-request"); - - String icon = String.format("%sweb/com.ibm.team.git.web/ui/internal/images/page/git_commit_desc_16.gif", + String icon = String.format( + "%sservice/org.jazzcommunity.GitConnectorService.IGitConnectorService/img/request_gitlab_16x16.png", parentService.getRequestRepositoryURL()); JtwigTemplate template = JtwigTemplate.classpathTemplate("templates/xml/issue_link.twig"); diff --git a/plugin/src/main/java/org/jazzcommunity/GitConnectorService/builder/gitlab/RequestPreviewService.java b/plugin/src/main/java/org/jazzcommunity/GitConnectorService/service/gitlab/RequestPreviewService.java similarity index 97% rename from plugin/src/main/java/org/jazzcommunity/GitConnectorService/builder/gitlab/RequestPreviewService.java rename to plugin/src/main/java/org/jazzcommunity/GitConnectorService/service/gitlab/RequestPreviewService.java index 6cd8031..46d6019 100644 --- a/plugin/src/main/java/org/jazzcommunity/GitConnectorService/builder/gitlab/RequestPreviewService.java +++ b/plugin/src/main/java/org/jazzcommunity/GitConnectorService/service/gitlab/RequestPreviewService.java @@ -1,4 +1,4 @@ -package org.jazzcommunity.GitConnectorService.builder.gitlab; +package org.jazzcommunity.GitConnectorService.service.gitlab; import ch.sbi.minigit.gitlab.GitlabApi; import ch.sbi.minigit.type.gitlab.mergerequest.MergeRequest; diff --git a/plugin/src/main/java/org/jazzcommunity/GitConnectorService/service/resource/ImageService.java b/plugin/src/main/java/org/jazzcommunity/GitConnectorService/service/resource/ImageService.java new file mode 100644 index 0000000..1219d59 --- /dev/null +++ b/plugin/src/main/java/org/jazzcommunity/GitConnectorService/service/resource/ImageService.java @@ -0,0 +1,41 @@ +package org.jazzcommunity.GitConnectorService.service.resource; + +import com.google.common.io.ByteSource; +import com.google.common.io.Resources; +import com.google.common.net.MediaType; +import com.ibm.team.repository.service.TeamRawService; +import com.siemens.bt.jazz.services.base.rest.parameters.PathParameters; +import com.siemens.bt.jazz.services.base.rest.parameters.RestRequest; +import com.siemens.bt.jazz.services.base.rest.service.AbstractRestService; +import org.apache.commons.logging.Log; +import org.apache.http.HttpStatus; + +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.net.URL; + +public class ImageService extends AbstractRestService { + public ImageService( + Log log, + HttpServletRequest request, + HttpServletResponse response, + RestRequest restRequest, + TeamRawService parentService, + PathParameters pathParameters) { + super(log, request, response, restRequest, parentService, pathParameters); + } + + @Override + public void execute() throws Exception { + try { + String filename = String.format("images/%s", pathParameters.get("filename")); + URL url = Resources.getResource(filename); + ByteSource source = Resources.asByteSource(url); + + response.setContentType(MediaType.ANY_IMAGE_TYPE.toString()); + source.copyTo(response.getOutputStream()); + } catch (IllegalArgumentException e) { + response.setStatus(HttpStatus.SC_NOT_FOUND); + } + } +} diff --git a/plugin/src/main/resources/images/issue_github_16x16.png b/plugin/src/main/resources/images/issue_github_16x16.png new file mode 100644 index 0000000..0338205 Binary files /dev/null and b/plugin/src/main/resources/images/issue_github_16x16.png differ diff --git a/plugin/src/main/resources/images/issue_gitlab_16x16.png b/plugin/src/main/resources/images/issue_gitlab_16x16.png new file mode 100644 index 0000000..f5450d1 Binary files /dev/null and b/plugin/src/main/resources/images/issue_gitlab_16x16.png differ diff --git a/plugin/src/main/resources/images/link_16x16.png b/plugin/src/main/resources/images/link_16x16.png new file mode 100644 index 0000000..966fdaa Binary files /dev/null and b/plugin/src/main/resources/images/link_16x16.png differ diff --git a/plugin/src/main/resources/images/link_broken_16x16.png b/plugin/src/main/resources/images/link_broken_16x16.png new file mode 100644 index 0000000..7a1edac Binary files /dev/null and b/plugin/src/main/resources/images/link_broken_16x16.png differ diff --git a/plugin/src/main/resources/images/request_gitlab_16x16.png b/plugin/src/main/resources/images/request_gitlab_16x16.png new file mode 100644 index 0000000..8beb9f3 Binary files /dev/null and b/plugin/src/main/resources/images/request_gitlab_16x16.png differ diff --git a/plugin/src/main/resources/schemas/oslc/issue/OslcIssue.json b/plugin/src/main/resources/schemas/oslc/issue/OslcIssue.json index a050e62..d140dc6 100644 --- a/plugin/src/main/resources/schemas/oslc/issue/OslcIssue.json +++ b/plugin/src/main/resources/schemas/oslc/issue/OslcIssue.json @@ -39,24 +39,24 @@ "rtc_cm:due": "2018-04-19T10:00:00.000Z", "rtc_cm:estimate": 18000000, "rtc_cm:timeSpent": 10800000, - "rtc_cm:type":{ - "rdf:type":[], - "rtc_cm:iconUrl":"https://localhost:7443/jazz/service/com.ibm.team.workitem.common.internal.model.IImageContentService/processattachment/_Y868wPuZEeau1PCMVYBRLg/workitemtype/bug.gif", - "dcterms:title":"Issue", - "dcterms:identifier":"issue" + "rtc_cm:type": { + "rdf:type": [], + "rtc_cm:iconUrl": "https://localhost:7443/jazz/service/com.ibm.team.workitem.common.internal.model.IImageContentService/processattachment/_Y868wPuZEeau1PCMVYBRLg/workitemtype/bug.gif", + "dcterms:title": "Issue", + "dcterms:identifier": "issue" }, "git_cm:project_id": 23862, "git_cm:milestone": { - "project_id" : 23862, - "description" : "Ducimus nam enim ex consequatur cumque ratione.", - "state" : "closed", + "project_id": 23862, + "description": "Ducimus nam enim ex consequatur cumque ratione.", + "state": "closed", "start_date": "2016-01-04", - "due_date" : null, - "iid" : 2, - "created_at" : "2016-01-04T15:31:39.996Z", - "title" : "v4.0", - "id" : 17, - "updated_at" : "2016-01-04T15:31:39.996Z" + "due_date": null, + "iid": 2, + "created_at": "2016-01-04T15:31:39.996Z", + "title": "v4.0", + "id": 17, + "updated_at": "2016-01-04T15:31:39.996Z" }, "git_cm:assignee": { "id": 150, @@ -66,14 +66,16 @@ "avatar_url": "url", "web_url": "https://code.siemens.com/userurl" }, - "git_cm:assignees": [{ - "id": 3537, - "name": "Bajohr Rayk adbara10", - "username": "adbara10", - "state": "active", - "avatar_url": "https://git.lab/uploads/-/system/user/avatar/115/avatar.png", - "web_url": "https://git.lab/adbara10" - }], + "git_cm:assignees": [ + { + "id": 3537, + "name": "Bajohr Rayk adbara10", + "username": "adbara10", + "state": "active", + "avatar_url": "https://git.lab/uploads/-/system/user/avatar/115/avatar.png", + "web_url": "https://git.lab/adbara10" + } + ], "git_cm:author": { "id": 3537, "name": "Bajohr Rayk adbara10", @@ -82,7 +84,7 @@ "avatar_url": "https://git.lab/uploads/-/system/user/avatar/115/avatar.png", "web_url": "https://git.lab/adbara10" }, - "git_cm:closed_by" : { + "git_cm:closed_by": { "id": 3537, "name": "Bajohr Rayk adbara10", "username": "adbara10", diff --git a/pom.xml b/pom.xml index 10f8b84..1865436 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ org.jazzcommunity.GitConnectorService org.jazzcommunity.GitConnectorService.parent - 1.6.4-SNAPSHOT + 1.7.1-SNAPSHOT pom diff --git a/test/META-INF/MANIFEST.MF b/test/META-INF/MANIFEST.MF index 768b31f..e9a851e 100644 --- a/test/META-INF/MANIFEST.MF +++ b/test/META-INF/MANIFEST.MF @@ -2,7 +2,7 @@ Manifest-Version: 1.0 Bundle-ManifestVersion: 2 Bundle-Name: org.jazzcommunity.GitConnectorService Bundle-SymbolicName: org.jazzcommunity.GitConnectorService.test;singleton:=true -Bundle-Version: 1.6.4.qualifier +Bundle-Version: 1.7.1.qualifier Bundle-Vendor: VENDOR Bundle-RequiredExecutionEnvironment: JavaSE-1.7 Bundle-ClassPath: target/dependency/junit-4.12.jar, @@ -10,7 +10,7 @@ Bundle-ClassPath: target/dependency/junit-4.12.jar, target/dependency/gson-2.8.2.jar, target/dependency/com.siemens.bt.jazz.services.base-3.0.2-SNAPSHOT.jar, target/dependency/com.siemens.bt.jazz.services.PersonalTokenService-1.0.2-SNAPSHOT.jar, - target/dependency/org.jazzcommunity.GitConnectorService-1.6.4-SNAPSHOT.jar, + target/dependency/org.jazzcommunity.GitConnectorService-1.7.1-SNAPSHOT.jar, target/dependency/asm-5.0.3.jar, target/dependency/asm-analysis-5.0.3.jar, target/dependency/asm-tree-5.0.3.jar, diff --git a/test/pom.xml b/test/pom.xml index 48fb045..ca0b02b 100644 --- a/test/pom.xml +++ b/test/pom.xml @@ -7,7 +7,7 @@ org.jazzcommunity.GitConnectorService org.jazzcommunity.GitConnectorService.parent - 1.6.4-SNAPSHOT + 1.7.1-SNAPSHOT ../ @@ -21,7 +21,7 @@ org.jazzcommunity.GitConnectorService org.jazzcommunity.GitConnectorService - 1.6.4-SNAPSHOT + 1.7.1-SNAPSHOT diff --git a/update-site/pom.xml b/update-site/pom.xml index a43aa19..3f03493 100644 --- a/update-site/pom.xml +++ b/update-site/pom.xml @@ -7,7 +7,7 @@ org.jazzcommunity.GitConnectorService org.jazzcommunity.GitConnectorService.parent - 1.6.4-SNAPSHOT + 1.7.1-SNAPSHOT ../