<project>
    <modelVersion>4.0.0</modelVersion>
    <groupId>com.wildbit.java</groupId>
    <artifactId>postmark</artifactId>
    <version>1.9.0</version>
    <name>postmark</name>
    <description>Postmark is a transactional email service provider.</description>
    <url>https://github.com/activecampaign/postmark-java</url>
    <distributionManagement>
        <relocation>
            <groupId>com.postmarkapp</groupId>
        </relocation>
    </distributionManagement>

     <developers>
        <developer>
            <name>Igor Balos</name>
            <organization>ActiveCampaign</organization>
            <organizationUrl>https://www.activecampaign.com</organizationUrl>
            <url>https://twitter.com/ibalosh/</url>
            <email>ibalosh@gmail.com</email>
        </developer>
    </developers>

    <licenses>
        <license>
            <name>MIT License</name>
            <url>http://www.opensource.org/licenses/mit-license.php</url>
            <distribution>repo</distribution>
        </license>
    </licenses>

    <scm>
        <url>https://github.com/activecampaign/postmark-java</url>
        <connection>scm:git@github.com:ActiveCampaign/postmark-java.git</connection>
        <developerConnection>scm:git@github.com:ActiveCampaign/postmark-java.git</developerConnection>
    </scm>

     <profiles>
        <profile>
            <id>release</id>

            <activation>
                <property>
                    <name>performRelease</name>
                </property>
            </activation>

            <build>
            <plugins>
                <!-- Release files to Maven server plugin -->
                <plugin>
                    <groupId>org.sonatype.plugins</groupId>
                    <artifactId>nexus-staging-maven-plugin</artifactId>
                    <version>1.6.7</version>
                    <extensions>true</extensions>
                    <configuration>
                        <serverId>ossrh</serverId>
                        <nexusUrl>https://oss.sonatype.org/</nexusUrl>
                        <autoReleaseAfterClose>true</autoReleaseAfterClose>
                        <skipStaging>true</skipStaging>
                    </configuration>
                </plugin>

                <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>

                <!-- generate javadocs -->
                <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>

                <!-- Signing files for release plugin -->
                <plugin>
                    <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>
            </plugins>
            </build>

            <!-- Maven deploy repository setting -->
            <distributionManagement>
                <repository>
                    <id>ossrh</id>
                    <url>https://oss.sonatype.org/service/local/staging/deploy/maven2</url>
                </repository>
                <snapshotRepository>
                    <id>ossrh</id>
                    <url>https://oss.sonatype.org/content/repositories/snapshots</url>
                </snapshotRepository>
            </distributionManagement>

        </profile>
    </profiles>
</project>