<?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>
    <groupId>org.bitbucket.iamkenos</groupId>
    <artifactId>cissnei</artifactId>
    <version>1.0.4</version>
    <packaging>pom</packaging>

    <name>${project.artifactId}</name>
    <description>
        A test automation framework built on top of Cucumber.
        Intended to be used for writing various automated cucumber tests using external dependencies:
        - Cucumber: ${io-cucumber-ver}
        - Web UI Functional Tests: Selenium ${selenium-java-ver}
        - API Tests: RestAssured ${rest-assured-ver}
        Run tests using:
        - A Cucumber runner class for CICD setup
        - Built-in JavaFx Applet test runner to non-CICD setup using a fat jar c/o maven shade
        Report Results:
        - Credits to Damian Szczepanik and his project [cucumber-reporting]
        - Built-in reporting module [cissnei-report] forked and modified - https://github.com/damianszczepanik/cucumber-reporting
    </description>
    <url>https://bitbucket.org/iamkenos/cissnei</url>

    <scm>
        <connection>scm:git:git://iamkenos@bitbucket.org/iamkenos/cissnei.git</connection>
        <url>https://bitbucket.org/iamkenos/cissnei/src</url>
    </scm>

    <developers>
        <developer>
            <name>Blank Matunog</name>
            <email>alexis.matunog@gmail.com</email>
            <url>https://bitbucket.org/iamkenos/</url>
        </developer>
    </developers>

    <licenses>
        <license>
            <name>GNU General Public License v3.0</name>
            <url>https://www.gnu.org/licenses/gpl-3.0.txt</url>
        </license>
    </licenses>

    <distributionManagement>
        <snapshotRepository>
            <id>ossrh</id>
            <url>https://oss.sonatype.org/content/repositories/snapshots</url>
        </snapshotRepository>
        <repository>
            <id>ossrh</id>
            <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
        </repository>
    </distributionManagement>

    <properties>
        <java-ver>1.8</java-ver>
        <maven-source-plugin-ver>3.0.1</maven-source-plugin-ver>
        <maven-javadoc-plugin-ver>3.0.0</maven-javadoc-plugin-ver>
        <maven-gpg-plugin-ver>1.6</maven-gpg-plugin-ver>
        <maven-shade-plugin-ver>3.0.0</maven-shade-plugin-ver>
        <maven-clean-plugin-ver>3.0.0</maven-clean-plugin-ver>
        <maven-antrun-plugin-ver>1.8</maven-antrun-plugin-ver>
        <maven-compiler-plugin-ver>3.6.1</maven-compiler-plugin-ver>
        <maven-replacer-plugin-ver>1.5.3</maven-replacer-plugin-ver>
        <maven-resources-plugin-ver>3.0.2</maven-resources-plugin-ver>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

        <!-- TESTING -->
        <junit-ver>4.12</junit-ver>
        <assertj-ver>3.9.1</assertj-ver>
        <io-cucumber-ver>2.4.0</io-cucumber-ver>

        <!-- REPORTS -->
        <velocity-ver>1.7</velocity-ver>
        <owasp-html-ver>20180219.1</owasp-html-ver>
        <jackson-databind-ver>2.9.5</jackson-databind-ver>

        <!-- REST -->
        <gson-ver>2.8.2</gson-ver>
        <rest-assured-ver>3.0.6</rest-assured-ver>

        <!-- SELENIUM -->
        <selenium-java-ver>3.11.0</selenium-java-ver>
        <awaitility-ver>3.1.0</awaitility-ver>

        <!-- DEVICE -->
        <appium-ver>5.0.4</appium-ver>

        <!-- UTILITIES -->
        <guava-ver>23.0</guava-ver>
        <protobuf-ver>3.3.1</protobuf-ver>
        <apache-poi-ver>3.16</apache-poi-ver>
        <commons-io-ver>2.5</commons-io-ver>
        <commons-lang-ver>3.6</commons-lang-ver>
        <commons-text-ver>1.1</commons-text-ver>
        <commons-csv-ver>1.5</commons-csv-ver>
        <commons-configuration-ver>2.1.1</commons-configuration-ver>

        <!-- LOGGING -->
        <log4j2-ver>2.8.2</log4j2-ver>
    </properties>

    <modules>
        <module>cissnei-commons</module>
        <module>cissnei-report</module>
        <module>cissnei-core</module>
        <module>cissnei-rest</module>
        <module>cissnei-selenium</module>
        <module>cissnei-jfx</module>
        <!--<module>cissnei-testing</module>-->
    </modules>

    <dependencyManagement>
        <dependencies>
            <!-- MODULES -->
            <dependency>
                <groupId>${project.groupId}</groupId>
                <artifactId>cissnei-commons</artifactId>
                <version>${project.version}</version>
            </dependency>
            <dependency>
                <groupId>${project.groupId}</groupId>
                <artifactId>cissnei-report</artifactId>
                <version>${project.version}</version>
            </dependency>
            <dependency>
                <groupId>${project.groupId}</groupId>
                <artifactId>cissnei-core</artifactId>
                <version>${project.version}</version>
            </dependency>
            <dependency>
                <groupId>${project.groupId}</groupId>
                <artifactId>cissnei-rest</artifactId>
                <version>${project.version}</version>
            </dependency>
            <dependency>
                <groupId>${project.groupId}</groupId>
                <artifactId>cissnei-selenium</artifactId>
                <version>${project.version}</version>
            </dependency>
            <dependency>
                <groupId>${project.groupId}</groupId>
                <artifactId>cissnei-jfx</artifactId>
                <version>${project.version}</version>
            </dependency>

            <!-- TESTING -->
            <dependency>
                <groupId>junit</groupId>
                <artifactId>junit</artifactId>
                <version>${junit-ver}</version>
            </dependency>
            <dependency>
                <groupId>org.assertj</groupId>
                <artifactId>assertj-core</artifactId>
                <version>${assertj-ver}</version>
            </dependency>
            <dependency>
                <groupId>io.cucumber</groupId>
                <artifactId>cucumber-java</artifactId>
                <version>${io-cucumber-ver}</version>
            </dependency>
            <dependency>
                <groupId>io.cucumber</groupId>
                <artifactId>cucumber-junit</artifactId>
                <version>${io-cucumber-ver}</version>
            </dependency>

            <!-- REPORTS -->
            <dependency>
                <groupId>com.fasterxml.jackson.core</groupId>
                <artifactId>jackson-databind</artifactId>
                <version>${jackson-databind-ver}</version>
            </dependency>
            <dependency>
                <groupId>org.apache.velocity</groupId>
                <artifactId>velocity</artifactId>
                <version>${velocity-ver}</version>
            </dependency>
            <dependency>
                <groupId>com.googlecode.owasp-java-html-sanitizer</groupId>
                <artifactId>owasp-java-html-sanitizer</artifactId>
                <version>${owasp-html-ver}</version>
            </dependency>

            <!-- REST -->
            <dependency>
                <groupId>com.google.code.gson</groupId>
                <artifactId>gson</artifactId>
                <version>${gson-ver}</version>
            </dependency>
            <dependency>
                <groupId>io.rest-assured</groupId>
                <artifactId>rest-assured</artifactId>
                <version>${rest-assured-ver}</version>
            </dependency>

            <!-- SELENIUM -->
            <dependency>
                <groupId>org.seleniumhq.selenium</groupId>
                <artifactId>selenium-java</artifactId>
                <version>${selenium-java-ver}</version>
            </dependency>
            <dependency>
                <groupId>org.awaitility</groupId>
                <artifactId>awaitility</artifactId>
                <version>${awaitility-ver}</version>
            </dependency>

            <!-- DEVICE -->
            <dependency>
                <groupId>io.appium</groupId>
                <artifactId>java-client</artifactId>
                <version>${appium-ver}</version>
            </dependency>

            <!-- UTILITIES -->
            <dependency>
                <groupId>com.google.guava</groupId>
                <artifactId>guava</artifactId>
                <version>${guava-ver}</version>
            </dependency>
            <dependency>
                <groupId>com.google.protobuf</groupId>
                <artifactId>protobuf-java</artifactId>
                <version>${protobuf-ver}</version>
            </dependency>
            <dependency>
                <groupId>org.apache.poi</groupId>
                <artifactId>poi</artifactId>
                <version>${apache-poi-ver}</version>
            </dependency>
            <dependency>
                <groupId>org.apache.poi</groupId>
                <artifactId>poi-ooxml</artifactId>
                <version>${apache-poi-ver}</version>
            </dependency>
            <dependency>
                <groupId>commons-io</groupId>
                <artifactId>commons-io</artifactId>
                <version>${commons-io-ver}</version>
            </dependency>
            <dependency>
                <groupId>org.apache.commons</groupId>
                <artifactId>commons-lang3</artifactId>
                <version>${commons-lang-ver}</version>
            </dependency>
            <dependency>
                <groupId>org.apache.commons</groupId>
                <artifactId>commons-text</artifactId>
                <version>${commons-text-ver}</version>
            </dependency>
            <dependency>
                <groupId>org.apache.commons</groupId>
                <artifactId>commons-csv</artifactId>
                <version>${commons-csv-ver}</version>
            </dependency>
            <dependency>
                <groupId>org.apache.commons</groupId>
                <artifactId>commons-configuration2</artifactId>
                <version>${commons-configuration-ver}</version>
            </dependency>

            <!-- LOGGING -->
            <dependency>
                <groupId>org.apache.logging.log4j</groupId>
                <artifactId>log4j-web</artifactId>
                <version>${log4j2-ver}</version>
            </dependency>
            <dependency>
                <groupId>org.apache.logging.log4j</groupId>
                <artifactId>log4j-api</artifactId>
                <version>${log4j2-ver}</version>
            </dependency>
            <dependency>
                <groupId>org.apache.logging.log4j</groupId>
                <artifactId>log4j-core</artifactId>
                <version>${log4j2-ver}</version>
            </dependency>
        </dependencies>
    </dependencyManagement>
    <build>
        <pluginManagement>
            <plugins>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-compiler-plugin</artifactId>
                    <version>${maven-compiler-plugin-ver}</version>
                    <configuration>
                        <source>${java-ver}</source>
                        <target>${java-ver}</target>
                    </configuration>
                </plugin>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-clean-plugin</artifactId>
                    <version>${maven-clean-plugin-ver}</version>
                </plugin>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-antrun-plugin</artifactId>
                    <version>${maven-antrun-plugin-ver}</version>
                </plugin>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-resources-plugin</artifactId>
                    <version>${maven-resources-plugin-ver}</version>
                </plugin>
                <plugin>
                    <groupId>com.google.code.maven-replacer-plugin</groupId>
                    <artifactId>replacer</artifactId>
                    <version>${maven-replacer-plugin-ver}</version>
                </plugin>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-source-plugin</artifactId>
                    <version>${maven-source-plugin-ver}</version>
                    <executions>
                        <execution>
                            <id>attach-sources</id>
                            <goals>
                                <goal>jar</goal>
                            </goals>
                        </execution>
                    </executions>
                </plugin>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-javadoc-plugin</artifactId>
                    <version>${maven-javadoc-plugin-ver}</version>
                    <executions>
                        <execution>
                            <id>attach-javadocs</id>
                            <goals>
                                <goal>jar</goal>
                            </goals>
                        </execution>
                    </executions>
                </plugin>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-gpg-plugin</artifactId>
                    <version>${maven-gpg-plugin-ver}</version>
                    <executions>
                        <execution>
                            <id>sign-artifacts</id>
                            <phase>verify</phase>
                            <goals>
                                <goal>sign</goal>
                            </goals>
                        </execution>
                    </executions>
                </plugin>
            </plugins>
        </pluginManagement>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-gpg-plugin</artifactId>
            </plugin>
        </plugins>
    </build>
</project>