<?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>br.com.ledgertec</groupId>
    <artifactId>rap-conector-client</artifactId>
    <version>0.26.0-1</version>

    <name>${project.groupId}:${project.artifactId}</name>
    <description>Client library for interacting with a RAP Conector instance.</description>
    <url>https://gitlab.ledgertec.com.br/rap/clients-conector/java-conector-client</url>

    <licenses>
        <license>
            <name>LGPL-3.0</name>
            <url>https://opensource.org/licenses/LGPL-3.0</url>
        </license>
    </licenses>

    <developers>
        <developer>
            <name>Samuel de Moura Moreira</name>
            <email>samueldemouramoreira@gmail.com</email>
            <organization>LedgerTec</organization>
            <organizationUrl>https://ledgertec.com.br</organizationUrl>
        </developer>
        <developer>
            <name>Matheus Goes Ribeiro</name>
            <email>matheusgoes23@gmail.com</email>
            <organization>LedgerTec</organization>
            <organizationUrl>https://ledgertec.com.br</organizationUrl>
        </developer>
    </developers>

    <scm>
        <connection>scm:git:git://gitlab.ledgertec.com.br/rap/clients-conector/java-conector-client.git</connection>
        <developerConnection>scm:git:ssh://gitlab.ledgertec.com.br/rap/clients-conector/java-conector-client.git</developerConnection>
        <url>https://gitlab.ledgertec.com.br/rap/clients-conector/java-conector-client</url>
    </scm>

    <dependencies>
        <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
            <version>4.12</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring-web</artifactId>
            <version>4.0.0.RELEASE</version>
        </dependency>
        <dependency>
            <groupId>com.fasterxml.jackson.core</groupId>
            <artifactId>jackson-databind</artifactId>
            <version>2.0.0</version>
        </dependency>
        <dependency>
		    <groupId>org.apache.httpcomponents</groupId>
		    <artifactId>httpclient</artifactId>
		    <version>4.5.6</version>
		</dependency>
    </dependencies>

    <!-- Distribution Management and Authentication -->
    <!-- For deployment to Maven Central via Sonatype OSSRH, uncomment this section and configure your settings.xml accordingly.
    <distributionManagement>
        <snapshotRepository>
            <id>ossrh</id>
            <url>https://ossrh-staging-api.central.sonatype.com/content/repositories/snapshots</url>
        </snapshotRepository>
        <repository>
            <id>ossrh</id>
            <url>https://ossrh-staging-api.central.sonatype.com/service/local/staging/deploy/maven2/</url>
        </repository>
    </distributionManagement>
    -->

    <build>
        <plugins>
            <!-- Javadoc and Sources Attachments -->
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-source-plugin</artifactId>
                <version>2.2.1</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>
                    </execution>
                </executions>
            </plugin>

            <!-- GPG Signed Components -->
            <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>
                            <gpgArguments>
                                <arg>--pinentry-mode</arg>
                                <arg>loopback</arg>
                            </gpgArguments>
                        </configuration>
                    </execution>
                </executions>
            </plugin>

            <!-- Central Repository Publishing -->
            <plugin>
                <groupId>org.sonatype.central</groupId>
                <artifactId>central-publishing-maven-plugin</artifactId>
                <version>0.9.0</version>
                <extensions>true</extensions>
                <configuration>
                    <publishingServerId>central</publishingServerId>
                    <autoPublish>true</autoPublish>
                    <waitUntil>published</waitUntil>
                </configuration>
            </plugin>

            <!-- Compiler override for proper 1.6 support. -->
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <version>3.1</version>

                <configuration>
                    <!-- Keep 1.6 language/bytecode -->
                    <source>1.6</source>
                    <target>1.6</target>

                    <!-- Ensure a consistent compiler if needed -->
                    <!-- optional: <fork>true</fork>
                        optional: <executable>${env.JAVA_HOME}/bin/javac</executable> -->

                    <!-- Pass Java 6 bootclasspath -->
                    <compilerArgs>
                        <arg>-Xlint:-options</arg>
                        <arg>-bootclasspath</arg>
                        <arg>/usr/jre/lib/rt.jar</arg>
                    </compilerArgs>
                </configuration>
            </plugin>
        </plugins>
    </build>

    <properties>
        <maven.compiler.source>6</maven.compiler.source>
        <maven.compiler.target>6</maven.compiler.target>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
    </properties>

</project>
