<?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/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>
    <parent>
        <groupId>com.mulesoft.connectivity</groupId>
        <artifactId>interpreted-connectivity-link-weave</artifactId>
        <version>1.6.0-321.develop</version>
    </parent>

    <artifactId>reference-connector-parent</artifactId>
    <packaging>pom</packaging>

    <modules>
        <module>connectivity-model</module>
        <module>flow-connector-model</module>
        <module>flow-bearer-connector-model</module>
        <module>flow-apiKey-connector-model</module>
        <module>flow-client-credentials-connector-model</module>
        <module>flow-authorization-code-connector-model</module>
        <module>flow-template-baseUri-connector-model</module>
    </modules>

    <properties>
        <pathToTop>..</pathToTop>
        <maven.resources.plugin.version>3.3.1</maven.resources.plugin.version>
    </properties>

    <dependencyManagement>
        <dependencies>
            <dependency>
                <groupId>com.mulesoft.connectivity</groupId>
                <artifactId>connectivity-language</artifactId>
                <version>${project.version}</version>
                <classifier>dw-library</classifier>
                <scope>provided</scope>
            </dependency>
            <!--Test dependencies -->
            <dependency>
                <groupId>org.mule.weave</groupId>
                <artifactId>data-weave-testing-framework</artifactId>
                <version>${data.weave.testing.framework.version}</version>
                <scope>test</scope>
            </dependency>
            <dependency>
                <groupId>org.mule.weave</groupId>
                <artifactId>http-netty-module</artifactId>
                <version>${data.weave.http.netty.module.version}</version>
                <scope>test</scope>
            </dependency>
            <dependency>
                <groupId>org.mule.weave</groupId>
                <artifactId>java-module</artifactId>
                <version>${data.weave.version}</version>
                <scope>test</scope>
            </dependency>
            <dependency>
                <groupId>org.mule.weave</groupId>
                <artifactId>core-modules</artifactId>
                <version>${data.weave.version}</version>
                <scope>test</scope>
            </dependency>
        </dependencies>
    </dependencyManagement>

    <build>
        <pluginManagement>
            <plugins>
                <plugin>
                    <groupId>org.mule.weave</groupId>
                    <artifactId>data-weave-maven-plugin</artifactId>
                    <version>${data.weave.maven.plugin.version}</version>
                    <extensions>true</extensions>
                    <configuration>
                        <binaryCompilation>true</binaryCompilation>
                        <tests>
                            <htmlReport>false</htmlReport>
                            <coverageEnabled>true</coverageEnabled>
                            <coverageFormat>sonar</coverageFormat>
                        </tests>
                    </configuration>
                </plugin>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-resources-plugin</artifactId>
                    <version>${maven.resources.plugin.version}</version>
                </plugin>
            </plugins>
        </pluginManagement>

        <plugins>
            <plugin>
                <groupId>org.mule.weave</groupId>
                <artifactId>data-weave-maven-plugin</artifactId>
            </plugin>
        </plugins>
    </build>

</project>
