Commits

Micha Kops committed e282dda

Initial import.

Comments (0)

Files changed (9)

+.project
+.classpath
+target
+.cache
+infinitest.filters
+.settings
+# Confluence Blueprint Example
+
+Some short examples using the new blueprint API for Atlassian's Confluence wiki.
+
+----
+
+**2013 Micha Kops /[hasCode.com]**
+
+   [hascode.com]:http://www.hascode.com/
+<?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">
+
+	<modelVersion>4.0.0</modelVersion>
+	<groupId>com.hascode.plugin.confluence</groupId>
+	<artifactId>confluence-blueprint-example</artifactId>
+	<version>1.0.0</version>
+
+	<organization>
+		<name>hasCode.com</name>
+		<url>http://www.hascode.com/</url>
+	</organization>
+
+	<developers>
+		<developer>
+			<name>Micha Kops</name>
+		</developer>
+	</developers>
+
+	<name>hasCode.com Blueprint Sample for Confluence</name>
+	<description>A short demonstration using the new blueprint API for Atlassian's Confluence.</description>
+	<packaging>atlassian-plugin</packaging>
+
+	<dependencies>
+		<dependency>
+			<groupId>junit</groupId>
+			<artifactId>junit</artifactId>
+			<version>4.11</version>
+			<scope>test</scope>
+		</dependency>
+		<!-- just to disable referenced older version from junit-dep to be included .. -->
+		<dependency>
+			<groupId>junit</groupId>
+			<artifactId>junit-dep</artifactId>
+			<version>4.11</version>
+			<scope>test</scope>
+		</dependency>
+		<dependency>
+			<groupId>com.atlassian.confluence</groupId>
+			<artifactId>confluence</artifactId>
+			<version>${confluence.version}</version>
+			<scope>provided</scope>
+		</dependency>
+
+		<!-- WIRED TEST RUNNER DEPENDENCIES -->
+		<dependency>
+			<groupId>com.atlassian.plugins</groupId>
+			<artifactId>atlassian-plugins-osgi-testrunner</artifactId>
+			<version>${plugin.testrunner.version}</version>
+			<scope>test</scope>
+		</dependency>
+		<dependency>
+			<groupId>javax.ws.rs</groupId>
+			<artifactId>jsr311-api</artifactId>
+			<version>1.1.1</version>
+			<scope>provided</scope>
+		</dependency>
+		<dependency>
+			<groupId>com.google.code.gson</groupId>
+			<artifactId>gson</artifactId>
+			<version>2.2.2-atlassian-1</version>
+		</dependency>
+	</dependencies>
+
+	<build>
+		<plugins>
+			<plugin>
+				<groupId>com.atlassian.maven.plugins</groupId>
+				<artifactId>maven-confluence-plugin</artifactId>
+				<version>${amps.version}</version>
+				<extensions>true</extensions>
+				<configuration>
+					<productVersion>${confluence.version}</productVersion>
+					<productDataVersion>${confluence.data.version}</productDataVersion>
+					<instructions>
+						<Import-Package>
+							com.atlassian.confluence.plugins.createcontent.extensions,
+							*
+						</Import-Package>
+					</instructions>
+				</configuration>
+			</plugin>
+			<plugin>
+				<artifactId>maven-compiler-plugin</artifactId>
+				<configuration>
+					<source>1.6</source>
+					<target>1.6</target>
+				</configuration>
+			</plugin>
+		</plugins>
+	</build>
+
+	<properties>
+		<confluence.version>5.1-m2</confluence.version>
+		<confluence.data.version>4.3.7</confluence.data.version>
+		<amps.version>4.1.5</amps.version>
+		<plugin.testrunner.version>1.1</plugin.testrunner.version>
+	</properties>
+
+</project>

src/main/resources/atlassian-plugin.xml

+<atlassian-plugin key="${project.groupId}.${project.artifactId}" name="${project.name}" plugins-version="2">
+    <plugin-info>
+        <description>${project.description}</description>
+        <version>${project.version}</version>
+        <vendor name="${project.organization.name}" url="${project.organization.url}" />
+        <param name="plugin-icon">images/pluginIcon.png</param>
+        <param name="plugin-logo">images/pluginLogo.png</param>
+    </plugin-info>
+
+    <!-- add our i18n resource -->
+    <resource type="i18n" name="i18n" location="confluence-blueprint-example"/>
+    
+    <!-- add our web resources -->
+    <web-resource key="confluence-blueprint-example-resources" name="confluence-blueprint-example Web Resources">
+        <dependency>com.atlassian.auiplugin:ajs</dependency>
+        
+        <resource type="download" name="confluence-blueprint-example.css" location="/css/confluence-blueprint-example.css"/>
+        <resource type="download" name="confluence-blueprint-example.js" location="/js/confluence-blueprint-example.js"/>
+        <resource type="download" name="images/" location="/images"/>
+
+        <context>confluence-blueprint-example</context>
+    </web-resource>
+</atlassian-plugin>

src/main/resources/confluence-blueprint-example.properties

+#put any key/value pairs here

src/main/resources/css/confluence-blueprint-example.css

Empty file added.

src/main/resources/images/pluginIcon.png

Added
New image

src/main/resources/images/pluginLogo.png

Added
New image

src/main/resources/js/confluence-blueprint-example.js

Empty file added.