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

	<!-- TODO :
		once it is mature enough, move that module into an independant project. The only reason to make
		it a submodule of api.rest is because jenkins+maven release would fail otherwise

		2022/01/07 - JTH : For now it's a submodule so i cleaned the properties to use parent pom and avoid conflicts.
		If one day this module is extracted (Not sur this is mandatory...), just copy/paste required properties from
		parent pom
	-->

	<parent>
		<groupId>org.squashtest.tm.plugin</groupId>
		<artifactId>api.rest</artifactId>
		<version>14.0.0.RC3</version>
	</parent>

	<name>squash-tm-domain-builder</name>
	<artifactId>domainbuilder</artifactId>
	<packaging>jar</packaging>

	<description>A testing library that helps creating real Squash TM domain entities when real instances are desired and mocks are not.</description>

	<dependencyManagement>
		<dependencies>
			<dependency>
				<groupId>org.squashtest.tm</groupId>
				<artifactId>squash-tm-bom</artifactId>
				<version>${squash.core.version}</version>
				<scope>import</scope>
				<type>pom</type>
			</dependency>
		</dependencies>
	</dependencyManagement>

	<dependencies>
		<!-- support dependencies-->

		<dependency>
			<groupId>org.apache.groovy</groupId>
			<artifactId>groovy</artifactId>
			<scope>provided</scope>
		</dependency>

		<!-- /support dependencies-->

		<!-- squash dependencies -->
		<dependency>
			<groupId>org.squashtest.tm</groupId>
			<artifactId>tm.domain</artifactId>
			<version>${squash.core.version}</version>
		</dependency>
		<!-- /squash dependencies -->


		<!-- test dependencies -->
		<dependency>
			<groupId>org.squashtest.tm</groupId>
			<artifactId>spock-test-dependencies</artifactId>
			<version>${squash.core.version}</version>
			<type>pom</type>
			<scope>test</scope>
		</dependency>
        <!-- /test dependencies -->

	</dependencies>


	<build>

		<sourceDirectory>src/main/java</sourceDirectory>
		<testSourceDirectory>src/test/groovy</testSourceDirectory>

		<plugins>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-compiler-plugin</artifactId>
			</plugin>

			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-surefire-plugin</artifactId>
				<version>${maven-failsafe-surefire-plugin.version}</version>
			</plugin>

		</plugins>
	</build>



	<repositories>
		<repository>
			<id>squash-release-repo</id>
			<url>http://repo.squashtest.org/maven2/releases</url>
		</repository>
		<repository>
			<id>squash-snapshot-repo</id>
			<url>http://repo.squashtest.org/maven2/snapshots</url>
			<snapshots>
				<enabled>true</enabled>
			</snapshots>
			<releases>
				<enabled>false</enabled>
			</releases>
		</repository>
	</repositories>
</project>
