<?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.jenmaarai</groupId>
   <artifactId>sidekick</artifactId>
   <version>2.5</version>
   <packaging>jar</packaging>
   
   <properties>
      <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
      <maven.compiler.source>1.8</maven.compiler.source>
      <maven.compiler.target>1.8</maven.compiler.target>
   </properties>
   
   <name>Sidekick</name>
   <description>A collection of helper classes geared toward accelerating the creation of small desktop applications by delegating common functionnalities like localization</description>
   <url>http://jenmaarai.com/sidekick</url>
   
   <licenses>
      <license>
         <name>GPL license, Version 3.0</name>
         <url>https://www.gnu.org/licenses/gpl.txt</url>
      </license>
   </licenses>
    
   <developers>
      <developer>
         <name>Xavier 'Xunkar' Sencert</name>
         <email>xunkar@jenmaarai.com</email>
         <organization>Jenmaarai</organization>
         <organizationUrl>https://www.jenmaarai.com</organizationUrl>
      </developer>
   </developers>   
    
   <scm>
      <connection>scm:git:git@github.com:xunkar/sidekick.git</connection>
      <developerConnection>scm:git:git@github.com:xunkar/sidekick.git</developerConnection>
      <url>git@github.com:xunkar/sidekick.git</url>
   </scm>
   
   <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>
   
   <build>
      <finalName>${project.artifactId}-${project.version}</finalName>
      <plugins>      
         <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-compiler-plugin</artifactId>
            <version>2.3.2</version>
            <configuration>
               <source>${maven.compiler.source}</source>
               <target>${maven.compiler.target}</target>
               <excludes>
                  <exclude>**/test</exclude>
               </excludes>
            </configuration>
         </plugin>

         <plugin><!-- JIRA SonaType Deployment -->
            <groupId>org.sonatype.plugins</groupId>
            <artifactId>nexus-staging-maven-plugin</artifactId>
            <version>1.6.3</version>
            <extensions>true</extensions>
            <configuration>
               <serverId>ossrh</serverId>
               <nexusUrl>https://oss.sonatype.org/</nexusUrl>
               <autoReleaseAfterClose>true</autoReleaseAfterClose>
            </configuration>
         </plugin>
         
         <plugin><!-- GPG Artifact Signing -->
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-gpg-plugin</artifactId>
            <version>1.6</version>
            <executions>
               <execution>
                  <id>sign-artifacts</id>
                  <phase>verify</phase>
                  <goals>
                     <goal>sign</goal>
                  </goals>
               </execution>
            </executions>
         </plugin>
         
         <plugin><!-- Project Sources Packaging -->
            <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><!-- Project Documentation Packaging -->
            <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>
      </plugins>
      
   </build>
</project>