<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>org.mule.tests</groupId>
        <artifactId>mule-test-artifacts</artifactId>
        <version>4.10.4</version>
    </parent>

    <packaging>pom</packaging>
    <artifactId>mule-test-smart-connectors-parent</artifactId>
    <name>Smart Connectors for test Parent Samples</name>
    <description>Set of Smart Connectors to create plugins to be later used with other modules</description>

    <properties>
        <mule.version>4.6.0</mule.version>
        <jsonVersion>20231013</jsonVersion>
    </properties>

    <modules>
        <module>smart-connector-using-core</module>
        <module>smart-connector-using-file</module>
        <module>smart-connector-using-http</module>
        <module>smart-connector-using-http-noconfig</module>
        <module>smart-connector-using-http-oauth</module>
        <module>smart-connector-using-http-oauth-authorization-code</module>
        <module>smart-connector-using-scripting</module>
        <module>smart-connector-using-custom-types</module>
        <module>smart-connector-using-smart-connector</module>
    </modules>
    
    <dependencyManagement>
        <dependencies>
            <dependency>
                <groupId>org.json</groupId>
                <artifactId>json</artifactId>
                <version>${jsonVersion}</version>
            </dependency>
        </dependencies>
    </dependencyManagement>

    <dependencies>
        <dependency>
            <groupId>org.mule.runtime</groupId>
            <artifactId>mule-module-extensions-xml-support</artifactId>
            <version>${project.version}</version>
            <scope>provided</scope>
        </dependency>
    </dependencies>

    <build>
        <pluginManagement>
            <plugins>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-install-plugin</artifactId>
                    <configuration>
                        <!-- allow for publishing a jar file even if the packaging is mule-extension -->
                        <allowIncompleteProjects>true</allowIncompleteProjects>
                    </configuration>
                </plugin>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-deploy-plugin</artifactId>
                    <configuration>
                        <!-- allow for publishing a jar file even if the packaging is mule-extension -->
                        <allowIncompleteProjects>true</allowIncompleteProjects>
                    </configuration>
                </plugin>
            </plugins>
        </pluginManagement>
        <plugins>
            <plugin>
                <!-- BUILD PLUGIN FOR JAVA_AND_SMART_CONNECTORS -->
                <groupId>org.mule.runtime.plugins</groupId>
                <artifactId>mule-extensions-maven-plugin</artifactId>
                <version>${mule.extensions.maven.plugin.version}</version>
                <extensions>true</extensions>
            </plugin>
        </plugins>
    </build>
</project>
