<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>

    <groupId>com.mulesoft.connectivity.pagerduty</groupId>
    <artifactId>pagerduty-parent</artifactId>
    <version>1.1.0-SNAPSHOT</version>
    <name>pagerduty-connector</name>
    <packaging>pom</packaging>
    
    <parent>
        <groupId>com.mulesoft.connectivity</groupId>
        <artifactId>interpreted-connectivity-parent</artifactId>
        <version>1.4.1</version>
    </parent>
    <properties>
        <connector.name>pagerduty-connector</connector.name>
        <!-- This property can disable the validateConnectorModel from connectivity-flow-maven-plugin -->
        <skipFlowModelValidation>false</skipFlowModelValidation>
        <release.status>GA</release.status>
        <connectivity.uc.anypoint.version>1.0.0</connectivity.uc.anypoint.version>
        <flow.connector.path>com::mulesoft::connectivity::pagerduty::Connector::connector</flow.connector.path>
    </properties>

    <modules>
		<module>pagerduty-connectivity-model</module>
        <module>pagerduty-flow-connector-model</module>
        <module>pagerduty-anypoint-connector-model</module>
    </modules>

    <build>
        <plugins>
            <plugin>
                <groupId>com.mulesoft.connectors.maven</groupId>
                <artifactId>connector-maven-plugin</artifactId>
            </plugin>
            <plugin>
                <groupId>org.mule.weave</groupId>
                <artifactId>data-weave-maven-plugin</artifactId>
            </plugin>
        </plugins>
    </build>

    <dependencies>
    <!-- Enable resolution of LW dependency in DW Extension -->
        <dependency>
            <groupId>com.mulesoft.connectivity</groupId>
            <artifactId>connectivity-language</artifactId>
            <classifier>dw-library</classifier>
        </dependency>
        <dependency>
            <groupId>org.mule.weave</groupId>
            <artifactId>runtime</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.mule.weave</groupId>
            <artifactId>core-modules</artifactId>
            <scope>test</scope>
        </dependency>
         <!-- Test -->
        <dependency>
            <groupId>org.mule.weave</groupId>
            <artifactId>data-weave-testing-framework</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.mule.weave</groupId>
            <artifactId>http-netty-module</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>ch.qos.logback</groupId>
            <artifactId>logback-classic</artifactId>
            <version>${logback.version}</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.mule.weave</groupId>
            <artifactId>java-module</artifactId>
            <scope>test</scope>
        </dependency>
    </dependencies>

    <distributionManagement>
        <repository>
            <id>mule-ci-releases</id>
            <name>MuleSoft Release Repository</name>
            <url>https://repository-master.mulesoft.org/nexus/content/repositories/releases</url>
        </repository>
        <snapshotRepository>
            <id>mule-ci-snapshots</id>
            <name>MuleSoft Snapshot Repository</name>
            <url>https://repository-master.mulesoft.org/nexus/content/repositories/snapshots</url>
        </snapshotRepository>
    </distributionManagement>

    <profiles>
        <profile>
            <id>nexus-deploy</id>
            <activation>
                <activeByDefault>true</activeByDefault>
            </activation>
            <distributionManagement>
                <repository>
                    <id>mule-ci-releases</id>
                    <name>MuleSoft Release Repository</name>
                    <url>https://repository-master.mulesoft.org/nexus/content/repositories/releases</url>
                </repository>
                <snapshotRepository>
                    <id>mule-ci-snapshots</id>
                    <name>MuleSoft Snapshot Repository</name>
                    <url>https://repository-master.mulesoft.org/nexus/content/repositories/snapshots</url>
                </snapshotRepository>
            </distributionManagement>
        </profile>
    </profiles>
</project>
