<?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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
  <modelVersion>4.0.0</modelVersion>
  <parent>
    <relativePath>../tl-parent-core</relativePath>
    <groupId>com.top-logic</groupId>
    <artifactId>tl-parent-core</artifactId>
    <version>8.0.0-alpha6</version>
  </parent>

  <artifactId>tl-common-remote</artifactId>
	<name>${project.artifactId}</name>
	<description>Shared library between server and GWT-based client code realizing collectively shared objects.</description>
  <url>https://github.com/top-logic/tl-engine/</url>

  <properties>
		<!-- GWT supports only Java 8 syntax. -->
		<maven.compiler.source>1.8</maven.compiler.source>
		<!-- It will be used in a Java 17 JVM. -->
		<maven.compiler.target>17</maven.compiler.target>
  </properties>

  <dependencies>
    <dependency>
      <groupId>com.top-logic</groupId>
      <artifactId>tl-common-json</artifactId>
    </dependency>
    <dependency>
      <groupId>com.top-logic</groupId>
      <artifactId>tl-common-json</artifactId>
      <classifier>sources</classifier>
      <scope>provided</scope>
    </dependency>

  </dependencies>

  <build>
    <plugins>
      <!--
        Override the restrictive Surefire <includes>test/TestAll.java</includes> inherited from
        tl-parent-core back to Surefire's default discovery. This module is a pure library without
        src/main/webapp, so the TestAll / AbstractBasicTestAll / ConfigLoader machinery used by
        the application modules cannot run here. Without this override, no tests would run and
        failures would silently pass the build.
      -->
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-surefire-plugin</artifactId>
        <configuration>
          <includes>
            <include>**/Test*.java</include>
            <include>**/*Test.java</include>
          </includes>
        </configuration>
      </plugin>
    </plugins>
  </build>
</project>
