<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>
	<groupId>org.jglue.cdi-unit</groupId>
	<artifactId>cdi-unit-parent</artifactId>
	<version>4.0.0</version>
	<packaging>pom</packaging>
	<parent>
		<groupId>org.sonatype.oss</groupId>
		<artifactId>oss-parent</artifactId>
		<version>7</version>
	</parent>
	<name>CDI-Unit-Parent</name>
	<url>http://jglue.org/cdi-unit</url>
	<description>JUnit runner for testing CDI based projects.</description>
	<developers>
		<developer>
			<name>Bryn Cooke</name>
		</developer>
	</developers>
	<properties>
		<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

		<!-- Note that Weld 1/2 tests also require -Dweld.test.1or2 to disable the weld.test.3plus profile -->
		<!--<weld.test.version>1.1.14.Final</weld.test.version>-->
		<!--<weld.test.version>2.1.0.Final</weld.test.version>-->
		<!--<weld.test.version>2.2.0.Final</weld.test.version>-->
		<!--<weld.test.version>2.4.2.SP1</weld.test.version>-->
		<weld.test.version>3.0.0.Final</weld.test.version>

		<!-- This changed to weld-se-shaded in Weld 3.0. See the weld.test.3plus profile. -->
		<weld-se-shaded.artifact>weld-se</weld-se-shaded.artifact>
	</properties>

	<licenses>
		<license>
			<name>The Apache Software License, Version 2.0</name>
			<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
			<distribution>repo</distribution>
		</license>
	</licenses>

	<modules>
		<module>cdi-unit</module>
		<module>cdi-unit-tests-external-dependency</module>
		<module>cdi-unit-tests</module>
		<module>cdi-unit-tests-bare</module>
		<module>cdi-unit-tests-mockito</module>
		<module>cdi-unit-tests-easymock</module>
		<!--<module>cdi-unit-tests-gradle</module>  Disabled because of mojo error-->
		<module>cdi-unit-tests-jandex</module>
	</modules>
	<build>
		<pluginManagement>
			<plugins>
				<plugin>
					<groupId>org.apache.maven.plugins</groupId>
					<artifactId>maven-deploy-plugin</artifactId>
					<version>2.8.2</version>
				</plugin>
			</plugins>
		</pluginManagement>
		<plugins>
		
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-compiler-plugin</artifactId>
				<version>3.6.1</version>
				<configuration>
					<source>1.8</source>
					<target>1.8</target>
				</configuration>
			</plugin>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-site-plugin</artifactId>
				<version>3.0</version>
				<configuration>
					<reportPlugins>
						<plugin>
							<groupId>org.apache.maven.plugins</groupId>
							<artifactId>maven-project-info-reports-plugin</artifactId>
							<version>2.4</version>
							<configuration>
								<dependencyDetailsEnabled>false</dependencyDetailsEnabled>
								<dependencyLocationsEnabled>false</dependencyLocationsEnabled>
							</configuration>
							<!-- simpler configuration without reportSets available for usual 
								cases -->
							<reports>
								<report>dependencies</report>
								<report>scm</report>
							</reports>
						</plugin>
						<plugin>
							<groupId>org.apache.maven.plugins</groupId>
							<artifactId>maven-javadoc-plugin</artifactId>
							<version>2.8</version>
							<configuration>
								<show>public</show>
								<excludePackageNames>*.internal.*</excludePackageNames>
							</configuration>
						</plugin>
					</reportPlugins>
				</configuration>
			</plugin>

		</plugins>
	</build>
	<profiles>
		<profile>
			<id>weld.test.3plus</id>
			<activation>
				<property>
					<name>!weld.test.1or2</name>
				</property>
			</activation>
			<properties>
				<weld-se-shaded.artifact>weld-se-shaded</weld-se-shaded.artifact>
			</properties>
		</profile>
		<profile>
			<id>release-sign-artifacts</id>
			<activation>
				<property>
					<name>performRelease</name>
					<value>true</value>
				</property>
			</activation>
			<build>
				<plugins>
					<plugin>
						<groupId>org.apache.maven.plugins</groupId>
						<artifactId>maven-gpg-plugin</artifactId>
						<version>1.1</version>
						<executions>
							<execution>
								<id>sign-artifacts</id>
								<phase>verify</phase>
								<goals>
									<goal>sign</goal>
								</goals>
							</execution>
						</executions>
					</plugin>
				</plugins>
			</build>
		</profile>
	</profiles>
	<scm>
		<connection>scm:git:ssh://git@github.com/BrynCooke/cdi-unit.git</connection>
		<developerConnection>scm:git:ssh://git@github.com/BrynCooke/cdi-unit.git</developerConnection>
		<url>https://github.com/BrynCooke/cdi-unit</url>
	</scm>

	<dependencyManagement>
		<dependencies>
			<dependency>
				<groupId>org.jglue.cdi-unit</groupId>
				<artifactId>cdi-unit</artifactId>
				<version>${project.version}</version>
				<scope>test</scope>
			</dependency>
			<dependency>
				<groupId>org.mockito</groupId>
				<artifactId>mockito-core</artifactId>
				<version>2.7.15</version>
				<scope>provided</scope>
			</dependency>
			<dependency>
				<groupId>junit</groupId>
				<artifactId>junit</artifactId>
				<version>4.12</version>
				<scope>test</scope>
			</dependency>
		</dependencies>
	</dependencyManagement>

</project>
