<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>
    <groupId>org.leapframework</groupId>
    <artifactId>jmms-parent</artifactId>
    <packaging>pom</packaging>
    <version>0.4.3</version>

    <name>jmms</name>
    <description>Java meta-micro-service framework based on spring boot.</description>
    <url>https://jmms-doc.github.io/</url>

    <licenses>
        <license>
            <name>The Apache Software License, Version 2.0</name>
            <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
        </license>
    </licenses>

    <developers>
        <developer>
            <name>Evan feng</name>
            <email>live.evan@gmail.com</email>
        </developer>
        <developer>
            <name>kael-aiur</name>
            <email>kael.peng@gmail.com</email>
        </developer>
        <developer>
            <name>shenglfyu</name>
        </developer>
    </developers>

    <scm>
        <connection>scm:git:git@github.com:leapframework/framework.git</connection>
        <developerConnection>scm:git:git@github.com:leapframework/framework.git</developerConnection>
        <url>http://github.com/leapframework/framework/tree/master</url>
        <tag>v@{project.version}</tag>
    </scm>

    <distributionManagement>
        <snapshotRepository>
            <id>ossrh-leap</id>
            <url>https://oss.sonatype.org/content/repositories/snapshots</url>
        </snapshotRepository>
        <repository>
            <id>ossrh-leap</id>
            <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
        </repository>
    </distributionManagement>

    <profiles>
        <profile>
            <id>release-sign</id>
            <activation>
                <property>
                    <name>performRelease</name>
                    <value>true</value>
                </property>
            </activation>
            <build>
                <plugins>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-gpg-plugin</artifactId>
                        <version>1.5</version>
                        <executions>
                            <execution>
                                <id>sign-artifacts</id>
                                <phase>verify</phase>
                                <goals>
                                    <goal>sign</goal>
                                </goals>
                                <configuration>
                                    <keyname>170DF22A</keyname>
                                </configuration>
                            </execution>
                        </executions>
                    </plugin>
                </plugins>
            </build>
        </profile>
    </profiles>

    <properties>
        <java.version>1.8</java.version>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

        <slf4j.version>1.7.20</slf4j.version>
        <logback.version>1.2.3</logback.version>
        <leap.version>0.7.3b</leap.version>
        <h2.version>1.3.172</h2.version>
        <mysql.version>5.1.26</mysql.version>
        <flyway.version>5.0.5</flyway.version>

        <docker.plugin.version>0.23.0</docker.plugin.version>
    </properties>

    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <version>2.3.2</version>
                <configuration>
                    <source>${java.version}</source>
                    <target>${java.version}</target>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-source-plugin</artifactId>
                <version>2.1.2</version>
                <executions>
                    <execution>
                        <id>attach-sources</id>
                        <goals>
                            <goal>jar-no-fork</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-javadoc-plugin</artifactId>
                <version>2.9.1</version>
                <executions>
                    <execution>
                        <id>attach-javadocs</id>
                        <goals>
                            <goal>jar</goal>
                        </goals>
                        <configuration>
                            <charset>UTF-8</charset>
                            <encoding>UTF-8</encoding>
                            <docencoding>UTF-8</docencoding>
                            <additionalparam>-Xdoclint:none</additionalparam>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>

    <dependencies>
        <dependency>
            <groupId>org.slf4j</groupId>
            <artifactId>slf4j-api</artifactId>
            <version>${slf4j.version}</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>ch.qos.logback</groupId>
            <artifactId>logback-classic</artifactId>
            <version>${logback.version}</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>com.h2database</groupId>
            <artifactId>h2</artifactId>
            <version>${h2.version}</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>javax.servlet</groupId>
            <artifactId>javax.servlet-api</artifactId>
            <version>3.1.0</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
            <version>4.12</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.leapframework</groupId>
            <artifactId>leap-junit</artifactId>
            <version>${leap.version}</version>
            <scope>test</scope>
        </dependency>
    </dependencies>

    <modules>
        <module>sdk</module>
        <module>core</module>
        <module>engine</module>
        <module>testing</module>

        <!-- modules -->
        <module>modules/redis</module>

        <!-- plugins -->
        <module>plugins/redis-api-reader</module>
        <module>plugins/swagger-doc</module>

        <!-- starter -->
        <module>starter/spring-boot</module>
        <module>starter/spring-boot-doc</module>
        <module>starter/spring-boot-min</module>
        <module>starter/spring-boot-test</module>
        <module>starter/spring-boot-template</module>

        <!-- tests -->
        <module>tests/test-cli</module>
        <module>tests/test-spring-base</module>
        <module>tests/test-spring-ds</module>
        <module>tests/test-spring-doc</module>
        <module>tests/test-spring-jsw</module>
        <module>tests/test-spring-nodb</module>
        <module>tests/test-spring-oauth2</module>
        <module>tests/test-spring-orm</module>
        <module>tests/test-spring-metaonly</module>
    </modules>
</project>