/src/main/resources/atlassian-plugin.xml

https://bitbucket.org/melias/jira-issue-summary-conventions-plugin · XML · 156 lines · 130 code · 19 blank · 7 comment · 0 complexity · d3674526ae4f098b27b3bec499466507 MD5 · raw file

  1. <atlassian-plugin key="${project.groupId}.${project.artifactId}" name="${project.name}" plugins-version="2">
  2. <plugin-info>
  3. <description>${project.description}</description>
  4. <version>${project.version}</version>
  5. <vendor name="${project.organization.name}" url="${project.organization.url}"/>
  6. <bundle-instructions>
  7. <Export-Package/>
  8. </bundle-instructions>
  9. </plugin-info>
  10. <resource type="i18n" name="issue-summary-conventions-plugin" location="issue-summary-conventions-plugin"/>
  11. <!-- REST -->
  12. <rest key="rest-resources" path="/convention-enforcer" version="1.0">
  13. <description>Provides the REST resources for the plugin.</description>
  14. </rest>
  15. <ao key="ao-module">
  16. <description>The module configuring the Active Objects service used by this plugin</description>
  17. <entity>com.atlassian.jira.plugin.convention.convention.ConventionEntity</entity>
  18. <entity>com.atlassian.jira.plugin.convention.config.ConfigEntity</entity>
  19. <entity>com.atlassian.jira.plugin.convention.config.ConfigEntryEntity</entity>
  20. </ao>
  21. <!-- COMPONENT IMPORTS -->
  22. <component-import key="ao" name="Active Objects service"
  23. interface="com.atlassian.activeobjects.external.ActiveObjects">
  24. <description>Component to access Active Objects functionality from the plugin</description>
  25. </component-import>
  26. <component-import key="velocity-renderer" interface="com.atlassian.templaterenderer.TemplateRenderer"/>
  27. <component-import key="project-manager" interface="com.atlassian.jira.project.ProjectManager"/>
  28. <component-import key="auth-ctx" interface="com.atlassian.jira.security.JiraAuthenticationContext"/>
  29. <component-import key="issue-type-manager" interface="com.atlassian.jira.config.IssueTypeManager"/>
  30. <!-- COMPONENTS -->
  31. <component key="template-service" class="com.atlassian.jira.plugin.convention.template.ConventionTemplateService"
  32. interface="com.atlassian.jira.plugin.convention.template.ConventionTemplateService"/>
  33. <component key="convention-context" class="com.atlassian.jira.plugin.convention.context.ConventionContext"/>
  34. <component key="convention-manager" class="com.atlassian.jira.plugin.convention.convention.ConventionManagerBean"/>
  35. <component key="convention-config-manager"
  36. class="com.atlassian.jira.plugin.convention.config.ConventionConfigManagerBean"/>
  37. <component key="config-repo"
  38. interface="com.atlassian.jira.plugin.convention.config.ConventionConfigRepository"
  39. class="com.atlassian.jira.plugin.convention.config.ConventionConfigAoRepository"/>
  40. <component key="convention-repo"
  41. interface="com.atlassian.jira.plugin.convention.convention.ConventionRepository"
  42. class="com.atlassian.jira.plugin.convention.convention.ConventionAoRepository"/>
  43. <!-- UI Components -->
  44. <web-item key="project-config-conventions-tab" name="Project Conventions"
  45. section="atl.jira.proj.config/projectgroup2"
  46. i18n-name-key="admin.project.tab.issue.conventions" weight="50">
  47. <label key="convention-enforcer.words.conventions"></label>
  48. <link linkId="project-config-conventions-tab">/secure/ViewConventions!default.jspa?projectKey=$projectKeyEncoded
  49. </link>
  50. <description>The link in Project Config that links to the conventions configuration page</description>
  51. </web-item>
  52. <webwork1 key="project-config-conventions" name="Conventions Project Admin">
  53. <actions>
  54. <action name="com.atlassian.jira.plugin.convention.projectconfig.ViewConventions"
  55. alias="ViewConventions" roles-required="admin">
  56. <view name="success">/projectconfig/view-conventions.vm</view>
  57. <view name="error">/projectconfig/view-conventions.vm</view>
  58. </action>
  59. <action name="com.atlassian.jira.plugin.convention.projectconfig.AddConvention"
  60. alias="AddConvention" roles-required="admin">
  61. <view name="success">/projectconfig/add-convention.vm</view>
  62. <view name="error">/projectconfig/add-convention.vm</view>
  63. </action>
  64. <action name="com.atlassian.jira.plugin.convention.projectconfig.ViewConvention"
  65. alias="ViewConvention" roles-required="admin">
  66. <view name="success">/projectconfig/view-convention.vm</view>
  67. <view name="error">/projectconfig/view-convention.vm</view>
  68. </action>
  69. </actions>
  70. </webwork1>
  71. <!-- Project Config Summary Convention Panel -->
  72. <web-panel key="issue.convention.project-summary-panel" location="webpanels.admin.summary.right-panels">
  73. <label key="convention-enforcer.words.conventions"/>
  74. <resource name="view" type="velocity" location="projectconfig/summary-conventions.vm"/>
  75. <resource name="css" type="download" location="css/summary-conventions.css"/>
  76. <context-provider
  77. class="com.atlassian.jira.plugin.convention.projectconfig.ConventionSummaryPanelContextProvider"/>
  78. <description>The project summary panel for configured conventions</description>
  79. </web-panel>
  80. <!-- Project Config Conventions Panel -->
  81. <web-panel key="issue.convention.panel" location="tabs.admin.projectconfig.conventions" weight="120">
  82. <resource name="view" type="velocity" location="projectconfig/conventions-summary.vm"/>
  83. <description>The project summary panel for configured conventions</description>
  84. </web-panel>
  85. <!-- WEB RESOURCES -->
  86. <web-resource key="summary-assist-resources" name="Summary Enhancer Resources">
  87. <context>atl.general</context>
  88. <transformation extension="js">
  89. <transformer key="jsI18n"/>
  90. </transformation>
  91. <transformation extension="soy">
  92. <transformer key="jiraSoyTransformer"/>
  93. </transformation>
  94. <resource name="convention-rest-client.js" type="download" location="js/convention-rest-client.js"></resource>
  95. <resource name="summary-enhancer.soy.js" type="download" location="templates/summary-enhancer.soy"></resource>
  96. <resource name="summary-enhancer.js" type="download" location="js/summary-enhancer.js"></resource>
  97. <resource name="summary-enhancer.css" type="download" location="css/summary-enhancer.css"></resource>
  98. <resource type="download" name="success.png" location="css/success.png"/>
  99. <resource type="download" name="hint.png" location="css/hint.png"/>
  100. <resource type="download" name="warning.png" location="css/warning.png"/>
  101. <resource type="download" name="down_key.png" location="css/down_key.png"/>
  102. </web-resource>
  103. <web-resource key="project-config-resources" name="Project Configuration Resources">
  104. <context>atl.admin</context>
  105. <transformation extension="js">
  106. <transformer key="jsI18n"/>
  107. </transformation>
  108. <transformation extension="soy">
  109. <transformer key="jiraSoyTransformer"/>
  110. </transformation>
  111. <resource name="convention-rest-client.js" type="download" location="js/convention-rest-client.js"></resource>
  112. <resource name="conventions-model.js" type="download" location="js/conventions-model.js"></resource>
  113. <resource name="convention-dialog.js" type="download" location="js/convention-dialog.js"></resource>
  114. <resource name="conventions-table.js" type="download" location="js/conventions-table.js"></resource>
  115. <resource name="conventions-controller.js" type="download" location="js/conventions-controller.js"></resource>
  116. <resource name="view-conventions.js" type="download" location="js/view-conventions.js"></resource>
  117. <resource name="view-conventions.css" type="download" location="css/view-conventions.css"></resource>
  118. <resource name="conventions-table.soy.js" type="download" location="templates/conventions-table.soy"></resource>
  119. <resource name="convention-dialog.soy.js" type="download" location="templates/convention-dialog.soy"></resource>
  120. <resource name="conventions-summary.js" type="download" location="js/conventions-summary.js"></resource>
  121. <resource name="conventions-summary.soy.js" type="download"
  122. location="templates/conventions-summary.soy"></resource>
  123. </web-resource>
  124. <web-resource key="admin-resources" name="Admin Resources">
  125. <dependency>jira.webresources:autocomplete</dependency>
  126. <dependency>jira.webresources:jira-fields</dependency>
  127. <dependency>com.atlassian.jira.jira-project-config-plugin:project-config-global</dependency>
  128. <dependency>com.atlassian.gadgets.embedded:gadget-standalone-resources</dependency>
  129. <transformation extension="js">
  130. <transformer key="jsI18n"/>
  131. </transformation>
  132. <transformation extension="soy">
  133. <transformer key="jiraSoyTransformer"/>
  134. </transformation>
  135. <dependency>com.atlassian.jira.jira-soy-plugin:soy-deps</dependency>
  136. </web-resource>
  137. </atlassian-plugin>