<?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/maven-v4_0_0.xsd">
  <modelVersion>4.0.0</modelVersion>
  <groupId>io.soabase</groupId>
  <artifactId>soabase-caseclass</artifactId>
  <name>Soabase CaseClass</name>
  <version>0.1.0</version>
  <description>Java annotation processor that generates Scala-style case classes</description>
  <url>https://github.com/soabase/soabase-caseclass</url>
  <issueManagement>
    <system>Github</system>
    <url>https://github.com/soabase/soabase-caseclass/issues</url>
  </issueManagement>
  <inceptionYear>2016</inceptionYear>
  <developers>
    <developer>
      <name>Jordan Zimmerman</name>
      <email>jordan@jordanzimmerman.com</email>
      <url>https://github.com/randgalt/</url>
      <roles>
        <role>Author</role>
      </roles>
      <timezone>-5</timezone>
    </developer>
  </developers>
  <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>
  <scm>
    <connection>scm:git:https://github.com/soabase/soabase-caseclass.git</connection>
    <developerConnection>scm:git:git@github.com:soabase/soabase-caseclass.git</developerConnection>
    <tag>soabase-caseclass-0.1.0</tag>
    <url>https://github.com/soabase/soabase-caseclass</url>
  </scm>
  <organization>
    <name>Soabase CaseClass</name>
    <url>https://github.com/soabase/soabase-caseclass</url>
  </organization>
  <build>
    <plugins>
      <plugin>
        <artifactId>maven-javadoc-plugin</artifactId>
        <version>${maven-javadoc-plugin-version}</version>
      </plugin>
      <plugin>
        <artifactId>maven-deploy-plugin</artifactId>
        <version>${maven-deploy-plugin-version}</version>
      </plugin>
      <plugin>
        <artifactId>maven-release-plugin</artifactId>
        <dependencies>
          <dependency>
            <groupId>org.apache.maven.scm</groupId>
            <artifactId>maven-scm-provider-gitexe</artifactId>
            <version>1.9.4</version>
          </dependency>
        </dependencies>
      </plugin>
      <plugin>
        <artifactId>maven-compiler-plugin</artifactId>
        <version>${maven-compiler-plugin-version}</version>
        <configuration>
          <source>${jdk-version}</source>
          <target>${jdk-version}</target>
          <compilerArgs>
            <arg>-proc:none</arg>
          </compilerArgs>
        </configuration>
      </plugin>
      <plugin>
        <artifactId>maven-install-plugin</artifactId>
        <version>${maven-install-plugin-version}</version>
        <configuration>
          <createChecksum>true</createChecksum>
        </configuration>
      </plugin>
      <plugin>
        <artifactId>maven-source-plugin</artifactId>
        <version>${maven-source-plugin-version}</version>
        <executions>
          <execution>
            <id>attach-sources</id>
            <goals>
              <goal>jar</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <artifactId>maven-shade-plugin</artifactId>
        <version>${maven-shade-plugin-version}</version>
        <executions>
          <execution>
            <phase>package</phase>
            <goals>
              <goal>shade</goal>
            </goals>
            <configuration>
              <transformers>
                <transformer />
              </transformers>
              <relocations>
                <relocation>
                  <pattern>com.squareup.javapoet</pattern>
                  <shadedPattern>io.soabase.com.squareup.javapoet</shadedPattern>
                </relocation>
              </relocations>
            </configuration>
          </execution>
        </executions>
        <configuration>
          <createDependencyReducedPom>true</createDependencyReducedPom>
          <filters>
            <filter>
              <artifact>*:*</artifact>
              <excludes>
                <exclude>META-INF/*.SF</exclude>
                <exclude>META-INF/*.DSA</exclude>
                <exclude>META-INF/*.RSA</exclude>
              </excludes>
            </filter>
          </filters>
        </configuration>
      </plugin>
      <plugin>
        <groupId>com.mycila.maven-license-plugin</groupId>
        <artifactId>maven-license-plugin</artifactId>
        <version>${maven-license-plugin-version}</version>
        <executions>
          <execution>
            <id>license</id>
            <phase>compile</phase>
            <goals>
              <goal>check</goal>
            </goals>
          </execution>
        </executions>
        <configuration>
          <header>src/etc/header.txt</header>
          <excludes>
            <exclude>**/*.apt</exclude>
            <exclude>**/*.md</exclude>
            <exclude>**/*.graffle</exclude>
            <exclude>**/.gitignore</exclude>
            <exclude>**/*.json</exclude>
            <exclude>**/.idea/**</exclude>
            <exclude>**/DISCLAIMER</exclude>
            <exclude>**/DEPENDENCIES</exclude>
            <exclude>**/KEYS</exclude>
            <exclude>**/LICENSE</exclude>
            <exclude>**/NOTICE</exclude>
            <exclude>**/README</exclude>
            <exclude>**/CHANGES</exclude>
            <exclude>**/RELEASE-NOTES</exclude>
            <exclude>**/generated/**</exclude>
            <exclude>**/test-file.txt</exclude>
            <exclude>**/assets/**</exclude>
          </excludes>
          <strictCheck>true</strictCheck>
        </configuration>
      </plugin>
    </plugins>
  </build>
  <profiles>
    <profile>
      <id>oss</id>
      <build>
        <plugins>
          <plugin>
            <artifactId>maven-gpg-plugin</artifactId>
            <version>1.6</version>
            <executions>
              <execution>
                <id>gpg</id>
                <phase>verify</phase>
                <goals>
                  <goal>sign</goal>
                </goals>
                <configuration>
                  <passphrase>Apache Cur8tor</passphrase>
                  <useAgent>true</useAgent>
                </configuration>
              </execution>
            </executions>
            <configuration>
              <passphrase>Apache Cur8tor</passphrase>
              <useAgent>true</useAgent>
            </configuration>
          </plugin>
        </plugins>
      </build>
    </profile>
  </profiles>
  <distributionManagement>
    <repository>
      <id>sonatype-nexus-staging</id>
      <name>Sonatype Nexus Staging</name>
      <url>https://oss.sonatype.org/service/local/staging/deploy/maven2</url>
    </repository>
    <snapshotRepository>
      <id>sonatype-nexus-snapshots</id>
      <name>Sonatype Nexus Snapshots</name>
      <url>https://oss.sonatype.org/content/repositories/snapshots/</url>
    </snapshotRepository>
  </distributionManagement>
  <properties>
    <maven-deploy-plugin-version>2.8.2</maven-deploy-plugin-version>
    <maven-install-plugin-version>2.5.2</maven-install-plugin-version>
    <javapoet-version>1.7.0</javapoet-version>
    <maven-javadoc-plugin-version>2.10.1</maven-javadoc-plugin-version>
    <maven-release-plugin-version>2.5.1</maven-release-plugin-version>
    <maven-shade-plugin-version>2.4.3</maven-shade-plugin-version>
    <maven-compiler-plugin-version>3.5.1</maven-compiler-plugin-version>
    <maven-gpg-plugin-version>1.6</maven-gpg-plugin-version>
    <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    <maven-source-plugin-version>3.0.0</maven-source-plugin-version>
    <maven-license-plugin-version>1.9.0</maven-license-plugin-version>
    <project.build.resourceEncoding>UTF-8</project.build.resourceEncoding>
    <jdk-version>1.8</jdk-version>
  </properties>
</project>

