<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>io.sunshower.environment</groupId>
    <artifactId>parent</artifactId>
    <version>1.0.19.Final</version>
    <packaging>pom</packaging>

    <name>Sunshower Parent Pom</name>

    <properties>
        <environment.version>1.0.19.Final</environment.version>
        <maven-source-plugin.version>2.1.2</maven-source-plugin.version>
        <project.scm.id>github.com</project.scm.id>
        <maven-source-plugin.version>2.2.1</maven-source-plugin.version>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        <maven-javadoc-plugin.version>2.9.1</maven-javadoc-plugin.version>
        <maven-gpg-plugin.version>3.0.1</maven-gpg-plugin.version>
    </properties>

    <description>
        Sunshower.io open-source parent-pom
    </description>

    <url>https://www.sunshower.io</url>
    <licenses>
        <license>
            <name>MIT License</name>
            <url>http://www.opensource.org/licenses/mit-license.php</url>
        </license>
    </licenses>

    <developers>
        <developer>
            <email>josiah@sunshower.io</email>
            <url>https://sunshower.io</url>
            <roles>
                <role>
                    admin
                </role>
            </roles>
        </developer>
        <developer>
            <email>lisa@sunshower.io</email>
            <url>https://sunshower.io</url>
            <roles>
                <role>
                    admin
                </role>
            </roles>
        </developer>
    </developers>



    <scm>
        <tag>HEAD</tag>
        <url>https://github.com/sunshower-io/${project.scm.tag}</url>
        <connection>scm:git:https://${env.GITHUB_PSW}@github.com/sunshower-io/sunshower-env</connection>
        <developerConnection>scm:git:https://${env.GITHUB_PSW}@github.com/sunshower-io/sunshower-env</developerConnection>
    </scm>

    <repositories>
        <repository>
            <id>sunshower-github</id>
            <url>https://maven.pkg.github.com/sunshower-io/*</url>
        </repository>
    </repositories>

    <profiles>
        <profile>
            <id>github</id>
            <activation>
                <activeByDefault>true</activeByDefault>
            </activation>
            <distributionManagement>
                <repository>
                    <id>sunshower-github</id>
                    <name>Sunshower-env Github</name>
                    <url>https://maven.pkg.github.com/sunshower-io/sunshower-env</url>
                </repository>
            </distributionManagement>
        </profile>
        <profile>
            <id>maven-central</id>
            <distributionManagement>
                <repository>
                    <id>maven-central-repo</id>
                    <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
                </repository>
                <snapshotRepository>
                    <id>maven-central-repo</id>
                    <name>Sunshower-env Github</name>
                    <url>https://oss.sonatype.org/content/repositories/snapshots/</url>
                </snapshotRepository>
            </distributionManagement>
        </profile>
    </profiles>

    <build>
        <plugins>

            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-source-plugin</artifactId>
                <version>${maven-source-plugin.version}</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>${maven-javadoc-plugin.version}</version>
                <executions>
                    <execution>
                        <id>attach-javadocs</id>
                        <goals>
                            <goal>jar</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-gpg-plugin</artifactId>
            </plugin>
        </plugins>
        <pluginManagement>
            <plugins>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-gpg-plugin</artifactId>
                    <version>${maven-gpg-plugin.version}</version>
                    <executions>
                        <execution>
                            <id>sign-artifacts</id>
                            <phase>verify</phase>
                            <goals>
                                <goal>sign</goal>
                            </goals>
                        </execution>
                    </executions>
                </plugin>
            </plugins>
        </pluginManagement>
    </build>
</project>
