<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>net.shibboleth.oidc</groupId>
		<artifactId>oidc-common-parent</artifactId>
		<version>0.0.4</version>
	</parent>

	<artifactId>oidc-common-metadata-impl</artifactId>
	<packaging>jar</packaging>
	<name>Shibboleth IdP :: Plugins :: OIDC Common :: Relying Party Metadata Implementation</name>
	<description>Implementation for common OIDC RP metadata functions/features.</description>

	<properties>
		<checkstyle.configLocation>${project.basedir}/../checkstyle.xml</checkstyle.configLocation>
		<automatic.module.name>net.shibboleth.oidc.metadata.impl</automatic.module.name>
	</properties>

	<dependencies>

		<dependency>
            <groupId>com.nimbusds</groupId>
            <artifactId>nimbus-jose-jwt</artifactId>
            <scope>compile</scope>
        </dependency>
		<dependency>
			<groupId>net.shibboleth.ext</groupId>
			<artifactId>spring-extensions</artifactId>
			<scope>provided</scope>
		</dependency>
		<dependency>
			<groupId>org.opensaml</groupId>
			<artifactId>opensaml-profile-api</artifactId>
			<scope>provided</scope>
		</dependency>
		<dependency>
			<groupId>net.shibboleth.idp</groupId>
			<artifactId>idp-core</artifactId>
			<scope>provided</scope>
		</dependency>
		<dependency>
			<groupId>net.shibboleth.oidc</groupId>
			<artifactId>oidc-common-crypto-api</artifactId>
			<scope>provided</scope>
		</dependency>
		<dependency>
			<groupId>net.shibboleth.oidc</groupId>
			<artifactId>oidc-common-crypto-impl</artifactId>
			<scope>provided</scope>
		</dependency>
		<dependency>
			<groupId>net.shibboleth.oidc</groupId>
			<artifactId>oidc-common-metadata-api</artifactId>
			<scope>provided</scope>
		</dependency>
		<dependency>
			<groupId>net.shibboleth.oidc</groupId>
			<artifactId>oidc-common-saml-api</artifactId>
			<scope>provided</scope>
		</dependency>
		<dependency>
			<groupId>net.shibboleth.idp</groupId>
			<artifactId>idp-attribute-api</artifactId>
			<scope>provided</scope>
		</dependency>
		<dependency>
			<groupId>net.shibboleth.idp</groupId>
			<artifactId>idp-attribute-resolver-api</artifactId>
			<scope>provided</scope>
		</dependency>
		<dependency>
			<groupId>org.opensaml</groupId>
			<artifactId>opensaml-storage-api</artifactId>
			<scope>provided</scope>
		</dependency>
		<dependency>
			<groupId>org.opensaml</groupId>
			<artifactId>opensaml-saml-impl</artifactId>
			<scope>provided</scope>
		</dependency>
		<dependency>
			<groupId>org.opensaml</groupId>
			<artifactId>opensaml-xmlsec-impl</artifactId>
			<scope>provided</scope>
		</dependency>
		<dependency>
			<groupId>javax.servlet</groupId>
			<artifactId>javax.servlet-api</artifactId>
			<scope>provided</scope>
		</dependency>
		<!-- Test Dependencies -->
		<dependency>
			<groupId>net.shibboleth.oidc</groupId>
			<artifactId>oidc-common-saml-impl</artifactId>
			<scope>test</scope>
		</dependency>
		<dependency>
			<groupId>net.shibboleth.idp</groupId>
			<artifactId>idp-saml-api</artifactId>
			<scope>test</scope>
		</dependency>
		<dependency>
			<groupId>org.hsqldb</groupId>
			<artifactId>hsqldb</artifactId>
			<scope>test</scope>
		</dependency>
		<dependency>
			<groupId>${opensaml.groupId}</groupId>
			<artifactId>opensaml-storage-impl</artifactId>
			<version>${opensaml.version}</version>
			<scope>test</scope>
		</dependency>
		<dependency>
			<groupId>net.shibboleth.idp</groupId>
			<artifactId>idp-attribute-resolver-spring</artifactId>
			<scope>test</scope>
		</dependency>
		<!-- Needed for Nimbus use in tests. -->
		<dependency>
			<groupId>com.sun.mail</groupId>
			<artifactId>jakarta.mail</artifactId>
			<scope>test</scope>
		</dependency>
		<dependency>
			<groupId>${opensaml.groupId}</groupId>
			<artifactId>opensaml-core</artifactId>
			<version>${opensaml.version}</version>
			<type>test-jar</type>
			<scope>test</scope>
		</dependency>
		<dependency>
			<groupId>net.shibboleth.idp</groupId>
			<artifactId>idp-profile-api</artifactId>
			<type>test-jar</type>
			<scope>test</scope>
		</dependency>
		<dependency>
			<groupId>net.shibboleth.idp</groupId>
			<artifactId>idp-core</artifactId>
			<type>test-jar</type>
			<scope>test</scope>
		</dependency>
		<dependency>
			<groupId>net.shibboleth.idp</groupId>
			<artifactId>idp-attribute-resolver-spring</artifactId>
			<type>test-jar</type>
			<scope>test</scope>
		</dependency>
		<dependency>
			<groupId>net.shibboleth.ext</groupId>
			<artifactId>spring-extensions</artifactId>
			<type>test-jar</type>
			<scope>test</scope>
		</dependency>
		<dependency>
			<groupId>${spring.groupId}</groupId>
			<artifactId>spring-test</artifactId>
			<scope>test</scope>
		</dependency>
	</dependencies>

	<build>
		<plugins>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-dependency-plugin</artifactId>
				<executions>
					<execution>
						<id>copy-dependencies-test</id>
						<phase>prepare-package</phase>
						<goals>
							<goal>copy-dependencies</goal>
						</goals>
						<configuration>
							<outputDirectory>${project.target.directory}</outputDirectory>
							<includeScope>runtime</includeScope>
							<excludeTransitive>true</excludeTransitive>
						</configuration>
					</execution>
				</executions>
			</plugin>
		</plugins>
	</build>

</project>
