<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.soartech</groupId>
    <artifactId>jsoar</artifactId>
    <version>4.1.3</version>
    <packaging>pom</packaging>
    <name>${project.groupId}:${project.artifactId}</name>
    <description>JSoar is a pure Java implementation of the Soar kernel.</description>
    <url>https://github.com/soartech/jsoar</url>
    <licenses>
        <license>
            <name>BSD-3-Clause</name>
            <url>https://opensource.org/licenses/BSD-3-Clause</url>
        </license>
    </licenses>
    <developers>
        <developer>
            <name>Bob Marinier</name>
            <email>bob.marinier@soartech.com</email>
            <organization>SoarTech</organization>
            <organizationUrl>https://soartech.com/</organizationUrl>
        </developer>
    </developers>

    <scm>
        <connection>scm:git:https://github.com/soartech/jsoar.git</connection>
        <developerConnection>scm:git:https://github.com/soartech/jsoar.git</developerConnection>
        <url>https://github.com/soartech/jsoar/tree/maven/</url>
        <tag>jsoar-4.1.3</tag>
    </scm>

    <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>
        
        <!-- plugin versions -->
        <graalvm.native-image.version>21.2.0</graalvm.native-image.version>
        <maven.compiler.version>3.10.1</maven.compiler.version>
        <maven.gpg.version>3.0.1</maven.gpg.version>
        <maven.jar.version>3.3.0</maven.jar.version>
        <maven.javadoc.version>3.4.1</maven.javadoc.version>
        <maven.release.version>3.0.0-M7</maven.release.version>
        <maven.shade.version>3.4.1</maven.shade.version>
        <maven.source.version>3.2.1</maven.source.version>
        <maven.surefire.version>3.0.0-M7</maven.surefire.version>
        
        <!-- dependency versions -->
        <classgraph.version>4.8.151</classgraph.version>
        <commons.beanutils.version>1.9.4</commons.beanutils.version>
        <commons.io.version>2.11.0</commons.io.version>
        <commons.math3.version>3.6.1</commons.math3.version>
        <graalvm.version>22.0.0.2</graalvm.version>
        <guava.version>31.1-jre</guava.version>
        <jackson.version>2.14.1</jackson.version>
        <json.simple.version>4.0.1</json.simple.version>
        <junit-jupiter.version>5.9.1</junit-jupiter.version>
        <logback.version>1.3.5</logback.version>
        <mockito.version>4.9.0</mockito.version>
        <opencsv.version>5.7.1</opencsv.version>
        <picocli.version>4.7.0</picocli.version>
        <re2j.version>1.7</re2j.version>
        <slf4j.version>2.0.5</slf4j.version>
        <spring.core.version>5.3.24</spring.core.version>
        <sqlite.jdbc.version>3.40.0.0</sqlite.jdbc.version>
        
    </properties>

    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-javadoc-plugin</artifactId>
                <version>${maven.javadoc.version}</version>
                <configuration>
                    <show>private</show>
                    <doclint>none</doclint>
                    <source>8</source>
                </configuration>
                <executions>
                  <execution>
                    <id>aggregate</id>
                    <goals>
                      <goal>aggregate</goal>
                    </goals>
                    <phase>install</phase>
                    <configuration>
                    </configuration>
                  </execution>
                  <execution>
                    <id>attach-javadocs</id>
                    <goals>
                      <goal>jar</goal>
                    </goals>
                  </execution>
                </executions>
            </plugin>
            <plugin>
              <groupId>org.apache.maven.plugins</groupId>
              <artifactId>maven-source-plugin</artifactId>
              <version>${maven.source.version}</version>
              <executions>
                <execution>
                  <id>attach-sources</id>
                  <goals>
                    <goal>jar</goal>
                  </goals>
                </execution>
              </executions>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-release-plugin</artifactId>
                <version>${maven.release.version}</version><!--$NO-MVN-MAN-VER$-->
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <version>${maven.compiler.version}</version>
                <configuration>
                    <source>${maven.compiler.source}</source>
                    <target>${maven.compiler.target}</target>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-surefire-plugin</artifactId>
                <version>${maven.surefire.version}</version>
                <configuration>
                    <skipTests>false</skipTests>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-gpg-plugin</artifactId>
                <version>${maven.gpg.version}</version>
                <executions>
                    <execution>
                        <id>sign-artifacts</id>
                        <phase>verify</phase>
                        <goals>
                            <goal>sign</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
        </plugins>
        <resources>
            <resource>
                <directory>src/main/resources</directory>
                <filtering>true</filtering>
            </resource>
        </resources>
    </build>

    <dependencies>
        <dependency>
            <groupId>com.google.guava</groupId>
            <artifactId>guava</artifactId>
            <version>${guava.version}</version>
        </dependency>
        <dependency>
            <groupId>org.slf4j</groupId>
            <artifactId>slf4j-api</artifactId>
            <version>${slf4j.version}</version>
        </dependency>
        <!--JUnit Jupiter Engine to depend on the JUnit5 engine and JUnit 5 API -->
        <dependency>
            <groupId>org.junit.jupiter</groupId>
            <artifactId>junit-jupiter-engine</artifactId>
            <version>${junit-jupiter.version}</version>
            <scope>test</scope>
        </dependency>
        <!--JUnit Jupiter Engine to depend on the JUnit4 engine and JUnit 4 API  -->
        <dependency>
            <groupId>org.junit.vintage</groupId>
            <artifactId>junit-vintage-engine</artifactId>
            <version>${junit-jupiter.version}</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>ch.qos.logback</groupId>
            <artifactId>logback-classic</artifactId>
            <version>${logback.version}</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.mockito</groupId>
            <artifactId>mockito-core</artifactId>
            <version>${mockito.version}</version>
            <scope>test</scope>
        </dependency>
    </dependencies>

    <repositories>
        <repository>
            <id>soartech-internal-snapshots</id>
            <url>https://nexus.soartech.com:8443/nexus/content/repositories/snapshots/</url>
            <snapshots>
                <enabled>true</enabled>
            </snapshots>
            <releases>
                <enabled>false</enabled>
            </releases>
        </repository>
    </repositories>

    <distributionManagement>
        <snapshotRepository>
            <id>soartech-internal-snapshots</id>
            <name>SoarTech Snapshots</name>
            <url>https://nexus.soartech.com:8443/nexus/content/repositories/snapshots/</url>
        </snapshotRepository>
        <repository>
            <id>ossrh</id>
            <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
        </repository>
        <!-- 
        <repository>
            <id>soartech-releases</id>
            <name>SoarTech Releases</name>
            <url>https://nexus.soartech.com:8443/nexus/content/repositories/releases/</url>
        </repository>
         -->
    </distributionManagement>

    <modules>
        <!-- <module>jsoar-build</module> only needed for uber jar, which shouldn't be used anyway -->
        <module>jsoar-core</module>
        <module>jsoar-tcl</module>
        <module>jsoar-repl</module>
        <module>jsoar-debugger</module>
        <module>jsoar-demos</module>
        <module>jsoar-legilimens</module>
        <!-- module>jsoar-ruby</module -->
        <module>jsoar-soar2soar</module>
        <module>jsoar-soarunit</module>
        <module>jsoar-performance-testing</module>
        
    </modules>
</project>
