<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/xsd/maven-4.0.0.xsd">
	<modelVersion>4.0.0</modelVersion>

	<parent>
		<groupId>ca.uhn.hapi.fhir</groupId>
		<artifactId>hapi-deployable-pom</artifactId>
		<version>4.0.0</version>
	</parent>

	<!--
	Note: Version of this project and the version of HAPI FHIR are not locked to
	each other. It is fine to bump the point version of this POM without affecting
	HAPI FHIR.
	-->
	<groupId>org.hl7.fhir.testcases</groupId>
	<artifactId>fhir-test-cases</artifactId>
	<version>1.2.21</version>
	<packaging>jar</packaging>

	<name>HL7 FHIR Test Cases</name>

	<organization>
		<name>Health Level 7</name>
		<url>http://hl7.org</url>
	</organization>

	<dependencies>
		<!-- Use logback for tests -->
		<dependency>
			<groupId>ch.qos.logback</groupId>
			<artifactId>logback-classic</artifactId>
			<version>1.2.3</version>
			<scope>test</scope>
		</dependency>
	</dependencies>

	<build>
		<plugins>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-compiler-plugin</artifactId>
				<version>3.8.0</version>
				<configuration>
					<source>1.8</source>
					<target>1.8</target>
					<forceJavacCompilerUse>false</forceJavacCompilerUse>
					<encoding>UTF-8</encoding>
					<fork>false</fork>
					<debug>true</debug>
				</configuration>
				<dependencies>
				</dependencies>
			</plugin>
		</plugins>
		<resources>
			<resource>
				<directory>.</directory>
				<targetPath>org/hl7/fhir/testcases/</targetPath>
				<excludes>
					<exclude>target/**</exclude>
				</excludes>
			</resource>
		</resources>
	</build>
	<profiles>
		<profile>
			<id>github-repo</id>
			<activation>
				<activeByDefault>false</activeByDefault>
				<property>
					<name>deployToGitHub</name>
				</property>
			</activation>
			<distributionManagement>
				<snapshotRepository>
					<id>github</id>
					<url>https://maven.pkg.github.com/FHIR/fhir-test-cases</url>
				</snapshotRepository>
				<repository>
					<id>github</id>
					<url>https://maven.pkg.github.com/FHIR/fhir-test-cases</url>
				</repository>
			</distributionManagement>
			<build>
				<plugins>
					<plugin>
						<groupId>org.apache.maven.plugins</groupId>
						<artifactId>maven-gpg-plugin</artifactId>
						<version>1.6</version>
						<executions>
							<execution>
								<id>sign-artifacts</id>
								<phase>verify</phase>
								<goals>
									<goal>sign</goal>
								</goals>
								<configuration>
									<keyname>${gpg.keyname}</keyname>
									<passphraseServerId>${gpg.keyname}</passphraseServerId>
									<gpgArguments>
									    <arg>--pinentry-mode</arg>
									    <arg>loopback</arg>
									</gpgArguments>
								</configuration>
							</execution>
						</executions>
					</plugin>
				</plugins>
			</build>
		</profile>
		<profile>
			<id>ossrh-repo</id>
			<activation>
				<activeByDefault>false</activeByDefault>
				<property>
					<name>deployToSonatype</name>
				</property>
			</activation>
			<distributionManagement>
				<snapshotRepository>
					<id>ossrh</id>
					<url>https://oss.sonatype.org/content/repositories/snapshots</url>
				</snapshotRepository>
				<repository>
					<id>ossrh</id>
					<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
				</repository>
			</distributionManagement>
			<build>
				<plugins>
					<plugin>
						<groupId>org.sonatype.plugins</groupId>
						<artifactId>nexus-staging-maven-plugin</artifactId>
						<version>1.6.7</version>
						<extensions>true</extensions>
						<configuration>
							<serverId>ossrh</serverId>
							<nexusUrl>https://oss.sonatype.org/</nexusUrl>
							<autoReleaseAfterClose>true</autoReleaseAfterClose>
						</configuration>
					</plugin>
					<plugin>
						<groupId>org.apache.maven.plugins</groupId>
						<artifactId>maven-gpg-plugin</artifactId>
						<version>1.6</version>
						<executions>
							<execution>
								<id>sign-artifacts</id>
								<phase>verify</phase>
								<goals>
									<goal>sign</goal>
								</goals>
								<configuration>
									<keyname>${gpg.keyname}</keyname>
									<passphraseServerId>${gpg.keyname}</passphraseServerId>
									<gpgArguments>
									    <arg>--pinentry-mode</arg>
									    <arg>loopback</arg>
									</gpgArguments>
								</configuration>
							</execution>
						</executions>
					</plugin>
				</plugins>
			</build>
		</profile>
	</profiles>
</project>
