<?xml version="1.0"?>
<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>
    <parent>
        <groupId>com.github.martinpaljak</groupId>
        <artifactId>javacard</artifactId>
        <version>19.05.09</version>
    </parent>
    <version>19.05.16</version>
    <artifactId>gppro</artifactId>
    <packaging>pom</packaging>
    <name>GlobalPlatformPro</name>
    <url>https://github.com/martinpaljak/GlobalPlatformPro</url>
    <description>Manage applets and keys on JavaCard-s like a pro</description>
    <licenses>
        <license>
            <name>LGPL-3.0</name>
            <url>https://github.com/martinpaljak/GlobalPlatformPro/blob/master/LICENSE</url>
            <distribution>repo</distribution>
            <comments>Some files under MIT</comments>
        </license>
    </licenses>
    <scm>
        <url>https://github.com/martinpaljak/GlobalPlatformPro</url>
        <developerConnection>scm:git:git@github.com:martinpaljak/globalplatformpro.git</developerConnection>
    </scm>
    <modules>
        <module>tool</module>
        <module>library</module>
    </modules>

    <build>
        <resources>
            <resource>
                <directory>target/generated-resources</directory>
            </resource>
            <resource>
                <directory>src/main/resources</directory>
            </resource>
        </resources>
        <plugins>
            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>exec-maven-plugin</artifactId>
                <version>1.6.0</version>
                <executions>
                    <execution>
                        <id>git-version</id>
                        <phase>generate-resources</phase>
                        <goals>
                            <goal>exec</goal>
                        </goals>
                    </execution>
                </executions>
                <configuration>
                    <executable>sh</executable>
                    <outputFile>target/generated-resources/pro/javacard/gp/pro_version.txt</outputFile>
                    <arguments>
                        <argument>-c</argument>
                        <argument>[ "x$GPPRO_VERSION" = "x" ] &amp;&amp; git describe --tags --always --long --dirty ||
                            echo "$GPPRO_VERSION"
                        </argument>
                    </arguments>
                </configuration>
            </plugin>


            <!-- Reproducible -->
            <plugin>
                <groupId>io.github.zlika</groupId>
                <artifactId>reproducible-build-maven-plugin</artifactId>
            </plugin>
        </plugins>
    </build>
</project>
