Commits

Anonymous committed 06002b1

adding new files

  • Participants

Comments (0)

Files changed (4)

+<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>com.example.crucible</groupId>
+    <artifactId>gadget-tutorial</artifactId>
+    <version>1.0-SNAPSHOT</version>
+
+    <organization>
+        <name>Example Company</name>
+        <url>http://www.example.com/</url>
+    </organization>
+
+    <name>gadget-tutorial</name>
+    <description>This is the com.example.crucible:gadget-tutorial plugin for Atlassian FishEye/Crucible.</description>
+    <packaging>atlassian-plugin</packaging>
+
+    <dependencies>
+        <dependency>
+            <groupId>junit</groupId>
+            <artifactId>junit</artifactId>
+            <version>3.8.1</version>
+            <scope>test</scope>
+        </dependency>
+        <dependency>
+            <groupId>javax.servlet</groupId>
+            <artifactId>servlet-api</artifactId>
+            <version>2.4</version>
+            <scope>provided</scope>
+        </dependency>
+    </dependencies>
+
+    <build>
+        <plugins>
+            <plugin>
+                <groupId>com.atlassian.maven.plugins</groupId>
+                <artifactId>maven-fecru-plugin</artifactId>
+                <version>3.0-SNAPSHOT</version>
+                <extensions>true</extensions>
+                <configuration>
+                    <productVersion>${fecru.version}</productVersion>
+                    <productDataVersion>${fecru.data.version}</productDataVersion>
+                </configuration>
+            </plugin>
+            <plugin>
+                <artifactId>maven-compiler-plugin</artifactId>
+                <configuration>
+                    <source>1.5</source>
+                    <target>1.5</target>
+                </configuration>
+            </plugin>
+        </plugins>
+    </build>
+
+    <properties>
+        <fecru.version>2.1.0.M3-tom3</fecru.version>
+        <fecru.data.version>2.0.4.1-SNAPSHOT</fecru.data.version>
+    </properties>
+
+</project>

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

+<atlassian-plugin key="${project.groupId}.${project.artifactId}" name="${project.artifactId}" plugins-version="2">
+    <plugin-info>
+        <description>${project.description}</description>
+        <version>${project.version}</version>
+        <vendor name="${project.organization.name}" url="${project.organization.url}" />
+    </plugin-info>
+
+    <gadget key="trivial-gadget" location="gadgets/helloworld.xml"/>
+</atlassian-plugin>

File src/main/resources/gadgets/helloworld.xml

+<?xml version="1.0" encoding="UTF-8" ?>
+<Module>
+    <ModulePrefs title="Crucible Tutorial Hello World Gadget" author_email="adent@example.com"
+                 directory_title="Crucible Tutorial Hello World Gadget">
+        <Require feature="minimessage"/>
+        <Optional feature="dynamic-height"/>
+    </ModulePrefs>
+    <Content type="html">
+<![CDATA[
+        Hello,world!
+]]>
+    </Content>
+</Module>

File src/test/resources/TEST_RESOURCES_README.txt

+Create any of the test resources you might need in this directory.
+
+Please remove this file before releasing your plugin.
+