<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.connectors</groupId>
        <artifactId>mule4-connectors-parent</artifactId>
        <version>1.0.7</version>
    </parent>

    <groupId>org.mule.modules</groupId>
    <artifactId>mule-spring-module-parent</artifactId>
    <name>Spring Module</name>
    <packaging>pom</packaging>
    <version>1.5.2</version>


    <properties>
        <formatterConfigPath>formatter.xml</formatterConfigPath>
        <springVersion>5.3.34</springVersion>
        <springSecurityVersion>5.8.12</springSecurityVersion>
        <mule.version>4.1.5</mule.version>
        <gsonVersion>2.9.1</gsonVersion>
    </properties>

    <modules>
        <module>module</module>
        <module>test-plugin</module>
    </modules>

	<dependencyManagement>
	    <dependencies>
	        <dependency>
	            <artifactId>mule-api</artifactId>
	            <groupId>org.mule.runtime</groupId>
	            <exclusions>
	                <exclusion>
	                    <groupId>com.google.code.gson</groupId>
	                    <artifactId>gson</artifactId>
	                </exclusion>
	            </exclusions>
	        </dependency>
	        <dependency>
	            <artifactId>mule-metadata-model-json</artifactId>
	            <groupId>org.mule.runtime</groupId>
	            <exclusions>
	                <exclusion>
	                    <groupId>com.google.code.gson</groupId>
	                    <artifactId>gson</artifactId>
	                </exclusion>
	            </exclusions>
	        </dependency>
	        <dependency>
	            <groupId>org.mule.runtime</groupId>
            	<artifactId>mule-module-service</artifactId>
	            <exclusions>
	                <exclusion>
	                    <groupId>com.google.code.gson</groupId>
	                    <artifactId>gson</artifactId>
	                </exclusion>
	            </exclusions>
	        </dependency>
	        <dependency>
	            <groupId>org.mule.runtime</groupId>
            	<artifactId>mule-module-extensions-spring-support</artifactId>
	            <exclusions>
	                <exclusion>
	                    <groupId>com.google.code.gson</groupId>
	                    <artifactId>gson</artifactId>
	                </exclusion>
	            </exclusions>
	        </dependency>
	        <dependency>
	            <groupId>org.mule.runtime</groupId>
            	<artifactId>mule-extensions-api-persistence</artifactId>
	            <exclusions>
	                <exclusion>
	                    <groupId>com.google.code.gson</groupId>
	                    <artifactId>gson</artifactId>
	                </exclusion>
	            </exclusions>
	        </dependency>
			<dependency>
				<groupId>org.springframework.security</groupId>
				<artifactId>spring-security-crypto</artifactId>
				<version>${springSecurityVersion}</version>
			</dependency>
	    </dependencies>
	</dependencyManagement>

	<dependencies>
		<dependency>
			<groupId>org.mule.tests</groupId>
			<artifactId>mule-tests-runner</artifactId>
			<version>4.3.0</version>
			<scope>test</scope>
		</dependency>
	</dependencies>

	<build>
		<plugins>
			<!-- Aggregator has no mule-artifact.json: disable inherited munit-extensions:test here only. -->
			<plugin>
				<groupId>com.mulesoft.munit</groupId>
				<artifactId>munit-extensions-maven-plugin</artifactId>
				<inherited>false</inherited>
				<executions>
					<execution>
						<id>test</id>
						<phase>none</phase>
					</execution>
				</executions>
			</plugin>
		</plugins>
	</build>
</project>
