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

	<parent>
		<artifactId>lutece-global-pom</artifactId>
		<groupId>fr.paris.lutece.tools</groupId>
		<version>6.1.0</version>
	</parent>

	<modelVersion>4.0.0</modelVersion>
	<groupId>fr.paris.lutece.plugins</groupId>
	<artifactId>plugin-identitystore</artifactId>
	<packaging>lutece-plugin</packaging>
	<version>3.1.9</version>
	<name>Lutece identitystore plugin</name>

	<properties>
		<jiraProjectName>IDENTITY</jiraProjectName>
		<jiraComponentId>13051</jiraComponentId>
		<testcontainers.version>1.17.6</testcontainers.version>
		<flyway.version>9.8.1</flyway.version>
		<swagger-jaxrs.version>1.6.11</swagger-jaxrs.version>
		<swagger.library-identitybusiness.version>[3.1.5-SNAPSHOT,)</swagger.library-identitybusiness.version>
	</properties>

	<repositories>
		<repository>
			<id>lutece</id>
			<name>luteceRepository</name>
			<url>https://dev.lutece.paris.fr/maven_repository</url>
			<layout>default</layout>
		</repository>
	</repositories>

	<dependencies>
		<dependency>
			<groupId>fr.paris.lutece</groupId>
			<artifactId>lutece-core</artifactId>
			<version>[7.0.0,)</version>
			<type>lutece-core</type>
		</dependency>
		<dependency>
			<groupId>fr.paris.lutece.plugins</groupId>
			<artifactId>plugin-rest</artifactId>
			<version>[3.0.0,)</version>
			<type>lutece-plugin</type>
		</dependency>
		<dependency>
			<groupId>fr.paris.lutece.plugins</groupId>
			<artifactId>plugin-swaggerui</artifactId>
			<version>[1.0.1,)</version>
			<type>lutece-plugin</type>
		</dependency>
		<dependency>
			<groupId>fr.paris.lutece.plugins</groupId>
			<artifactId>library-identitybusiness</artifactId>
			<!-- Attention : ne pas utiliser la property swagger pour spécifier la version-->
			<version>[3.1.7-SNAPSHOT,)</version>
			<type>jar</type>
		</dependency>

		<!-- Génération du fichier swagger.json -->
		<dependency>
			<groupId>io.swagger</groupId>
			<artifactId>swagger-jaxrs</artifactId>
			<version>${swagger-jaxrs.version}</version>
			<exclusions>
				<exclusion>
					<groupId>javax.ws.rs</groupId>
					<artifactId>jsr311-api</artifactId>
				</exclusion>
			</exclusions>
			<scope>provided</scope>
		</dependency>

		<dependency>
			<groupId>fr.paris.lutece.plugins</groupId>
			<artifactId>plugin-geocodes</artifactId>
			<version>[1.0.4-SNAPSHOT,)</version>
			<type>lutece-plugin</type>
		</dependency>
		
		<dependency>
			<groupId>fr.paris.lutece.plugins</groupId>
			<artifactId>library-notificationstore</artifactId>
			<version>[1.0.0-SNAPSHOT,)</version>
			<type>jar</type>
		</dependency>

		<!-- TEST -->
		<dependency>
			<groupId>org.testcontainers</groupId>
			<artifactId>testcontainers</artifactId>
			<version>${testcontainers.version}</version>
			<scope>test</scope>
		</dependency>
		<dependency>
			<groupId>org.testcontainers</groupId>
			<artifactId>elasticsearch</artifactId>
			<version>${testcontainers.version}</version>
			<scope>test</scope>
		</dependency>
		<dependency>
			<groupId>org.testcontainers</groupId>
			<artifactId>postgresql</artifactId>
			<version>${testcontainers.version}</version>
			<scope>test</scope>
		</dependency>
		<dependency>
			<groupId>org.flywaydb</groupId>
			<artifactId>flyway-core</artifactId>
			<version>${flyway.version}</version>
			<scope>test</scope>
		</dependency>
		<dependency>
			<groupId>org.apache.commons</groupId>
			<artifactId>commons-text</artifactId>
			<version>1.10.0</version>
			<scope>test</scope>
		</dependency>

	</dependencies>

	<scm>
		<connection>scm:git:https://github.com/lutece-secteur-public/gru-plugin-identitystore.git</connection>
		<developerConnection>scm:git:https://github.com/lutece-secteur-public/gru-plugin-identitystore.git</developerConnection>
		<url>https://github.com/lutece-secteur-public/gru-plugin-identitystore.git</url>
		<tag>plugin-identitystore-3.1.9</tag>
	</scm>

	<!-- Génération du fichier swagger.json -->
	<profiles>
		<profile>
			<id>swagger-json</id>
			<activation>
				<activeByDefault>false</activeByDefault>
			</activation>
			<build>
				<plugins>
					<plugin>
						<groupId>io.openapitools.swagger</groupId>
						<artifactId>swagger-maven-plugin</artifactId>
						<version>1.0.3</version>
						<configuration>
							<resourcePackages>
								<resourcePackage>fr.paris.lutece.plugins.identitystore.v3.web.rs.swagger</resourcePackage>
								<resourcePackage>fr.paris.lutece.plugins.identitystore.v3.web.rs</resourcePackage>
							</resourcePackages>
							<outputDirectory>${project.basedir}/webapp/plugins/identitystore/api/swagger/v3/</outputDirectory>
							<outputFilename>swagger</outputFilename>
							<outputFormats>JSON</outputFormats>
						</configuration>
						<dependencies>
							<dependency>
								<groupId>fr.paris.lutece.plugins</groupId>
								<artifactId>library-identitybusiness</artifactId>
								<version>${swagger.library-identitybusiness.version}</version>
							</dependency>
						</dependencies>
						<executions>
							<execution>
								<goals>
									<goal>generate</goal>
								</goals>
							</execution>
						</executions>
					</plugin>
				</plugins>
			</build>
		</profile>
	</profiles>


</project>
