<?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>

	<parent>
		<groupId>com.atlassian.rm</groupId>
		<artifactId>shared-libs</artifactId>
		<version>2.0.5-OD-001-D20160721T001053</version>
		<relativePath>../pom.xml</relativePath>
	</parent>

	<artifactId>shared-libs-plugin</artifactId>

	<name>Portfolio 2 / Shared Libs [Plugin]</name>

	<packaging>atlassian-plugin</packaging>

	<properties>

		<!-- OD Testing configuration -->
		<od.testing.configuration>
			use-maven,3
			include-artifact,com.atlassian:jira-portfolio-ondemand-acceptance-tests
		</od.testing.configuration>

	</properties>

	<dependencies>

		<dependency>

			<groupId>com.querydsl</groupId>
			<artifactId>querydsl-sql</artifactId>
			<version>4.0.3</version>

			<!-- override default scope as the shared libs plugin MUST compile (and hence provide it provide it to others) -->
			<scope>compile</scope>

			<exclusions>
				<exclusion>
					<groupId>org.apache.servicemix.bundles</groupId>
					<artifactId>org.apache.servicemix.bundles.javax-inject</artifactId>
				</exclusion>
			</exclusions>

		</dependency>

		<dependency>

			<groupId>com.google.guava</groupId>
			<artifactId>guava</artifactId>
			<version>18.0</version>

			<!-- override default scope as the shared libs plugin MUST compile guava to be used by querydsl -->
			<scope>compile</scope>

		</dependency>

	</dependencies>

	<build>

		<plugins>

			<plugin>

				<groupId>com.atlassian.maven.plugins</groupId>
				<artifactId>maven-amps-plugin</artifactId>

				<configuration>

					<compressResources>false</compressResources>

					<enableFastdev>${enableFastdev}</enableFastdev>

					<product>jira</product>
					<productVersion>${jira.it.version}</productVersion>

					<buildTestPlugin>false</buildTestPlugin>

					<instructions>

						<!--
							NOTE: this MUST, MUST, MUST be the plugin ID due to a bug/fug somewhere down the
							road through manifest generation (the group/artifact id is used as a default
							symbolic bundle name, but if and only if 'instructions' are passed, otherwise
							the plugin id is used) and active objects (which uses the symbolic bundle name
							rather than the plugin id to generate prefixes.
						-->
						<Bundle-SymbolicName>com.atlassian.rm.shared-libs</Bundle-SymbolicName>

						<!-- temporarily remove export to limit the risk of screwing freezer -->
						<!--
						<Export-Package>
							com.querydsl.*;version="${querydsl.version}",
							!*
						</Export-Package>
						-->
						<Export-Package>
							!*
						</Export-Package>

					</instructions>

				</configuration>

			</plugin>

		</plugins>

	</build>

</project>