<!--
    Copyright (C) 2026 ITEG IT-Engineers GmbH
-->
<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>
  <parent>
    <groupId>org.clazzes.util</groupId>
    <artifactId>clazzes-parent</artifactId>
    <version>4.3.1</version>
  </parent>

  <groupId>org.clazzes.util</groupId>
  <artifactId>test-util</artifactId>
  <version>1.0.0</version>

  <properties>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    <java.version>17</java.version>
    <postgres.version>42.7.8</postgres.version>
    <httputil.version>3.1.0</httputil.version>
    <svc-runner.version>1.3.0</svc-runner.version>
    <login-main.version>2.0.3</login-main.version>
  </properties>

  <scm>
    <developerConnection>scm:git:git@gitlab.intra.iteg.at:java-libs/util/test-util.git</developerConnection>
    <connection>scm:git:git@gitlab.intra.iteg.at:java-libs/util/test-util.git</connection>
    <tag>test-util-1.0.0</tag>
  </scm>


  <build>
    <plugins>
      <plugin>
        <groupId>org.jacoco</groupId>
        <artifactId>jacoco-maven-plugin</artifactId>
        <executions>
          <execution>
            <goals>
              <goal>prepare-agent</goal>
            </goals>
          </execution>
          <execution>
            <id>generate-code-coverage-report</id>
            <phase>test</phase>
            <goals>
              <goal>report</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>exec-maven-plugin</artifactId>
        <configuration>
          <!--
              <executable>/usr/bin/pba-mvn2pkg-raiseversion-prod</executable>
          -->
          <executable>java</executable>
          <arguments>
            <argument>--version</argument>
          </arguments>
          <workingDirectory>.</workingDirectory>
        </configuration>
      </plugin>


      <!-- release process plugins -->
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-release-plugin</artifactId>
        <configuration>
          <preparationGoals>clean verify exec:exec</preparationGoals>
        </configuration>
      </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-javadoc-plugin</artifactId>
        <configuration>
          <doclint>all,-missing</doclint>
        </configuration>
      </plugin>

	  <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-surefire-plugin</artifactId>
        <configuration>
          <!-- This allows postgres to write directly to stdout, without having to go through java -->
          <forkNode implementation="org.apache.maven.plugin.surefire.extensions.SurefireForkNodeFactory" />
        </configuration>
      </plugin>
    </plugins>
  </build>

  <repositories>
    <repository>
      <id>org.clazzes</id>
      <name>Clazzes.org repository.</name>
      <url>https://maven.clazzes.org</url>
    </repository>
    <repository>
      <id>org.clazzes snapshots</id>
      <name>Clazzes.org snapshots repository.</name>
      <url>https://maven-snapshots.clazzes.org</url>
    </repository>
  </repositories>

  <pluginRepositories>
    <pluginRepository>
      <id>clazzes.org</id>
      <name>clazzes.org open source repository.</name>
      <url>https://maven.clazzes.org</url>
    </pluginRepository>
  </pluginRepositories>

  <dependencies>
    <dependency>
      <groupId>org.clazzes.util</groupId>
      <artifactId>http-util</artifactId>
      <version>${httputil.version}</version>
    </dependency>
    <dependency>
      <groupId>org.slf4j</groupId>
      <artifactId>slf4j-api</artifactId>
    </dependency>
    <dependency>
      <groupId>jakarta.servlet</groupId>
      <artifactId>jakarta.servlet-api</artifactId>
    </dependency>
    <dependency>
      <groupId>commons-io</groupId>
      <artifactId>commons-io</artifactId>
    </dependency>
    <dependency>
      <groupId>org.opentest4j</groupId>
      <artifactId>opentest4j</artifactId>
      <version>1.3.0</version>
    </dependency>
    <dependency>
      <groupId>org.postgresql</groupId>
      <artifactId>postgresql</artifactId>
      <version>${postgres.version}</version>
    </dependency>

	<dependency>
      <groupId>org.junit.jupiter</groupId>
      <artifactId>junit-jupiter-api</artifactId>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>org.junit.jupiter</groupId>
      <artifactId>junit-jupiter-engine</artifactId>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>org.slf4j</groupId>
      <artifactId>slf4j-simple</artifactId>
      <scope>test</scope>
    </dependency>
	<dependency>
	  <groupId>com.google.code.gson</groupId>
	  <artifactId>gson</artifactId>
	</dependency>
    <dependency>
      <groupId>org.clazzes.login</groupId>
      <artifactId>jaas-login-service</artifactId>
      <scope>test</scope>
      <version>${login-main.version}</version>
    </dependency>
    <dependency>
      <groupId>org.clazzes.login</groupId>
      <artifactId>http-login-adapter</artifactId>
      <scope>test</scope>
      <version>${login-main.version}</version>
    </dependency>
    <dependency>
      <groupId>org.clazzes.svc</groupId>
      <artifactId>svc-runner-core</artifactId>
      <scope>test</scope>
      <version>${svc-runner.version}</version>
    </dependency>
    <dependency>
      <groupId>org.clazzes.svc</groupId>
      <artifactId>svc-runner-jetty</artifactId>
      <scope>test</scope>
      <version>${svc-runner.version}</version>
    </dependency>
    <dependency>
      <groupId>org.clazzes.svc</groupId>
      <artifactId>svc-runner-jdbc</artifactId>
      <scope>test</scope>
      <version>${svc-runner.version}</version>
    </dependency>
    <dependency>
      <groupId>org.apache.commons</groupId>
      <artifactId>commons-text</artifactId>
    </dependency>

  </dependencies>
</project>
