<?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>com.hardisgroup.n1.protoc-gen-validate</groupId>
    <artifactId>pgv-java</artifactId>
    <version>1.13.0-SNAPSHOT</version>
    <modules>
        <module>pgv-java-stub</module>
        <module>pgv-java-validation</module>
        <module>pgv-java-grpc</module>
        <module>pgv-artifacts</module>
    </modules>

    <packaging>pom</packaging>

    <name>PGV-Java Parent</name>
    <description>Protoc plugin to generate protobuf message validators.</description>
    <url>https://gitlab.hardis-group.com/r-d-technique/n1/n1-protoc-gen-validate.git/protoc-gen-validate</url>

    <licenses>
        <license>
            <name>The Apache Software License, Version 2.0</name>
            <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
            <distribution>repo</distribution>
        </license>
    </licenses>

    <developers>
        <developer>
            <id>rmichela</id>
            <name>Ryan Michela</name>
            <email>rmichela@salesforce.com</email>
        </developer>
        <developer>
            <id>ramaraochavali</id>
            <name>Rama Chavali</name>
            <email>rama.rao@salesforce.com</email>
        </developer>
    </developers>

    <properties>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

        <protoc.version>3.5.1</protoc.version>
        <re2j.version>1.2</re2j.version>
        <commons.validator.version>1.6</commons.validator.version>
        <google.protobuf.version>3.11.4</google.protobuf.version>
        <grpc.version>1.12.0</grpc.version>
        <junit.version>4.12</junit.version>
        <assertj.version>3.11.1</assertj.version>
        <java.version>1.8</java.version>
        <proto-google-common-protos.version>1.17.0</proto-google-common-protos.version>
    </properties>

    <dependencies>
        <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
            <version>${junit.version}</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.assertj</groupId>
            <artifactId>assertj-core</artifactId>
            <version>${assertj.version}</version>
            <scope>test</scope>
        </dependency>
    </dependencies>
    
    <repositories>
        <repository>
            <id>gitea</id>
            <url>https://git.dev.reflex-platform.com/api/packages/reflex-platform/maven</url>
        </repository>
    </repositories>
    
    <distributionManagement>
        <repository>
            <id>gitea</id>
            <url>https://git.dev.reflex-platform.com/api/packages/reflex-platform/maven</url>
        </repository>
        <snapshotRepository>
            <id>gitea</id>
            <url>https://git.dev.reflex-platform.com/api/packages/reflex-platform/maven</url>
        </snapshotRepository>
    </distributionManagement>

    <build>
        <extensions>
            <extension>
                <groupId>com.google.cloud.artifactregistry</groupId>
                <artifactId>artifactregistry-maven-wagon</artifactId>
                <version>2.1.1</version>
            </extension>
        </extensions>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <version>3.6.1</version>
                <configuration>
                    <source>${java.version}</source>
                    <target>${java.version}</target>
                    <compilerArgument>-Xlint:unchecked</compilerArgument>
                </configuration>
            </plugin>

            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-surefire-plugin</artifactId>
                <version>2.22.1</version>
                <configuration>
                    <useSystemClassLoader>false</useSystemClassLoader>
                </configuration>
            </plugin>

            <!--plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-javadoc-plugin</artifactId>
                <version>3.1.0</version>
                <configuration>
                    <author>false</author>
                    <breakiterator>true</breakiterator>
                    <doclint>accessibility,html,reference,syntax</doclint>
                    <keywords>true</keywords>
                    <version>false</version>
                    <source>8</source>
                </configuration>
                <executions>
                    <execution>
                        <id>attach-javadocs</id>
                        <goals>
                            <goal>jar</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin-->

            <!--plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-source-plugin</artifactId>
                <version>3.0.1</version>
                <executions>
                    <execution>
                        <id>attach-sources</id>
                        <goals>
                            <goal>jar</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin-->
        </plugins>
    </build>


</project>
