<?xml version="1.0" encoding="UTF-8"?>
<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">

    <modelVersion>4.0.0</modelVersion>

    <parent>
        <groupId>net.shibboleth</groupId>
        <artifactId>parent</artifactId>
        <version>17.0.2</version>
    </parent>

    <groupId>net.shibboleth.idp.plugin.scripting</groupId>
    <artifactId>idp-plugin-scripting</artifactId>
    <version>2.1.0</version>
    <packaging>pom</packaging>

    <name>Shibboleth IdP :: Plugins :: Scripting</name>
    <description>
        Scripting Plugins for the Shibboleth IdP
    </description>

    <properties>
        <shibboleth.projectName>java-idp-plugin-scripting</shibboleth.projectName>
        <shib-profile.groupId>net.shibboleth</shib-profile.groupId>
        <shib-profile.version>5.0.0</shib-profile.version>
        <idp.groupId>net.shibboleth.idp</idp.groupId>
        <idp.version>5.0.0</idp.version>
        <checkstyle.configLocation>${project.basedir}/resources/checkstyle/checkstyle.xml</checkstyle.configLocation>
    </properties>
    
    <dependencies>
    </dependencies>

    <dependencyManagement>
        <dependencies>
            <!-- 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>
            <!-- Import IdP -->
            <dependency>
                <groupId>${idp.groupId}</groupId>
                <artifactId>idp-bom</artifactId>
                <version>${idp.version}</version>
                <type>pom</type>
                <scope>import</scope>
            </dependency>
        </dependencies>
    </dependencyManagement>

    <modules>
        <module>scripting-api</module>
        <module>nashorn-jdk-impl</module>
        <module>nashorn-jdk-dist</module>
        <module>rhino-impl</module>
        <module>rhino-dist</module>
    </modules>
    
    <build>
        <plugins>
            <plugin>
                <groupId>net.shibboleth.maven.plugins</groupId>
                <artifactId>maven-javadoc-plugin</artifactId>
                <configuration>
                    <links combine.children="append">
                        <link>${javadoc.url}/java-shib-profile/${shib-profile.version}</link>
                        <link>${javadoc.url}/java-identity-provider/${idp.version}</link>
                    </links>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-jar-plugin</artifactId>
                <configuration>
                    <archive>
                        <index>true</index>
                        <manifestEntries>
                            <Automatic-Module-Name>${automatic.module.name}</Automatic-Module-Name>
                            <Sealed>true</Sealed>
                        </manifestEntries>
                    </archive>
                </configuration>
            </plugin>
        </plugins>
    </build>

</project>
