<!-- See LICENSE.txt file in the root directory of this repository for the copyright/license information. -->
<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</groupId>
        <artifactId>parent</artifactId>
        <version>17.0.2</version>
    </parent>

    <groupId>net.shibboleth.idp.plugin.oidc</groupId>
    <artifactId>idp-plugin-oidc-op-parent</artifactId>
    <version>4.2.0</version>
    <name>Shibboleth IdP :: Plugins :: OpenID Connect Provider</name>
    <packaging>pom</packaging>

    <properties>
        <shibboleth.projectName>java-idp-oidc</shibboleth.projectName>
        <shib-shared.groupId>net.shibboleth</shib-shared.groupId>
        <shib-shared.version>9.0.0</shib-shared.version>
        <oidc-common.groupId>net.shibboleth.oidc</oidc-common.groupId>
        <oidc-common.version>3.2.0</oidc-common.version>
        <idp.groupId>net.shibboleth.idp</idp.groupId>
        <idp.version>5.0.0</idp.version>
        <shib-profile.groupId>net.shibboleth</shib-profile.groupId>
        <shib-profile.version>5.0.0</shib-profile.version>
        <shib-attribute.groupId>net.shibboleth</shib-attribute.groupId>
        <shib-attribute.version>5.0.0</shib-attribute.version>
        <shib-metadata.groupId>net.shibboleth</shib-metadata.groupId>
        <shib-metadata.version>5.0.0</shib-metadata.version>
        <opensaml.groupId>org.opensaml</opensaml.groupId>
        <opensaml.version>5.0.0</opensaml.version>
        <oidc.config.version>2.2.0</oidc.config.version>
        <commons.io.version>2.6</commons.io.version>
        <checkstyle.configLocation>${project.basedir}/resources/checkstyle.xml</checkstyle.configLocation>
        <!-- Dependency management in oidc-common-bom, but versions needed here for javadoc links -->
        <nimbus-jose-jwt.version>9.40</nimbus-jose-jwt.version>
        <oauth2-oidc-sdk.version>10.15</oauth2-oidc-sdk.version>
        <json.smart.version>2.5.1</json.smart.version>
        <accessors.smart.version>1.2</accessors.smart.version>
        <nimbus.lang.tag.version>1.7</nimbus.lang.tag.version>
        <nimbus.content.type.version>2.3</nimbus.content.type.version>
    </properties>
    
    <description>
        OpenID Connect Provider plugin for the Shibboleth IdP.
    </description>
    
    <modules>
        <module>idp-oidc-extension-api</module>
        <module>idp-oidc-extension-impl</module>
        <module>idp-oidc-extension-distribution</module>
    </modules>

    <dependencies>
        <!-- Project wide test Dependencies -->
        <dependency>
            <groupId>org.testng</groupId>
            <artifactId>testng</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>${slf4j.groupId}</groupId>
            <artifactId>slf4j-api</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>com.google.code.findbugs</groupId>
            <artifactId>jsr305</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>ch.qos.logback</groupId>
            <artifactId>logback-classic</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.mockito</groupId>
            <artifactId>mockito-core</artifactId>
            <scope>test</scope>
        </dependency>
    </dependencies>
    <dependencyManagement>
        <dependencies>
            <!-- IdP BOM when importing IdP dependencies -->
            <dependency>
                <groupId>${idp.groupId}</groupId>
                <artifactId>idp-bom</artifactId>
                <version>${idp.version}</version>
                <type>pom</type>
                <scope>import</scope>
            </dependency>
            <!-- Import Dependencies: Shib-Metadata/Attribute/Profile -->
            <dependency>
                <groupId>${shib-profile.groupId}</groupId>
                <artifactId>shib-profile-bom</artifactId>
                <version>${shib-profile.version}</version>
                <type>pom</type>
                <scope>import</scope>
            </dependency>
            <dependency>
                <groupId>${shib-attribute.groupId}</groupId>
                <artifactId>shib-attribute-bom</artifactId>
                <version>${shib-attribute.version}</version>
                <type>pom</type>
                <scope>import</scope>
            </dependency>
            <dependency>
                <groupId>${shib-metadata.groupId}</groupId>
                <artifactId>shib-metadata-bom</artifactId>
                <version>${shib-metadata.version}</version>
                <type>pom</type>
                <scope>import</scope>
            </dependency>
            <!-- Import Dependencies: OpenSAML -->
            <dependency>
                <groupId>${opensaml.groupId}</groupId>
                <artifactId>opensaml-bom</artifactId>
                <version>${opensaml.version}</version>
                <type>pom</type>
                <scope>import</scope>
            </dependency>
            <!-- Import Dependencies: Shared -->
            <dependency>
                <groupId>${shib-shared.groupId}</groupId>
                <artifactId>shib-shared-bom</artifactId>
                <version>${shib-shared.version}</version>
                <type>pom</type>
                <scope>import</scope>
            </dependency>
            <!-- OIDC Common BOM when importing OIDC dependencies -->
            <dependency>
                <groupId>${oidc-common.groupId}</groupId>
                <artifactId>oidc-common-bom</artifactId>
                <version>${oidc-common.version}</version>
                <type>pom</type>
                <scope>import</scope>
            </dependency>
            <dependency>
                <groupId>net.shibboleth.idp.plugin.config.oidc</groupId>
                <artifactId>idp-plugin-oidc-config-impl</artifactId>
                <version>${oidc.config.version}</version>
            </dependency>
            <!-- Compile Dependencies -->
            <dependency>
                <groupId>net.shibboleth.idp.plugin.oidc</groupId>
                <version>${project.version}</version>
                <artifactId>idp-plugin-oidc-op-api</artifactId>
            </dependency>
             <!-- Other Test Dependencies -->
            <dependency>
                <groupId>commons-io</groupId>
                <artifactId>commons-io</artifactId>
                <version>${commons.io.version}</version>
                <scope>test</scope>
            </dependency>
            <dependency>
                <groupId>net.shibboleth.idp.plugin.oidc</groupId>
                <version>${project.version}</version>
                <artifactId>idp-plugin-oidc-op-api</artifactId>
                <type>test-jar</type>
                <scope>test</scope>
            </dependency>            
        </dependencies>
    </dependencyManagement>
    
    <build>
        <plugins>
            <plugin>
                <groupId>net.shibboleth.maven.plugins</groupId>
                <artifactId>maven-javadoc-plugin</artifactId>
                <configuration>
                    <links combine.children="append">
                        <link>${javadoc.url}/java-shib-shared/${shib-shared.version}</link>
                        <link>${javadoc.url}/java-opensaml/${opensaml.version}</link>
                        <link>${javadoc.url}/java-shib-metadata/${shib-metadata.version}</link>
                        <link>${javadoc.url}/java-shib-attribute/${shib-attribute.version}</link>
                        <link>${javadoc.url}/java-shib-profile/${shib-profile.version}</link>
                        <link>${javadoc.url}/java-identity-provider/${idp.version}</link>
                        <link>${javadoc.url}/java-oidc-common/${oidc-common.version}</link>
                        <link>https://javadoc.io/doc/com.nimbusds/nimbus-jose-jwt/$(nimbus-jose-jwt.version)</link>
                        <link>https://javadoc.io/doc/com.nimbusds/oauth2-oidc-sdk/${oauth2-oidc-sdk.version}</link>
                        <link>https://javadoc.io/doc/net.minidev/json-smart/${json.smart.version}</link>
                        <link>https://javadoc.io/doc/net.minidev/accessors-smart/${accessors.smart.version}</link>
                        <link>https://javadoc.io/doc/com.nimbusds/lang-tag/${nimbus.lang.tag.version}</link>
                        <link>https://javadoc.io/doc/com.nimbusds/content-type/${nimbus.content.type.version}</link>
                    </links>
                </configuration>
            </plugin>
        </plugins>
    </build>

</project>
