<?xml version="1.0" encoding="UTF-8"?>
<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>
    <groupId>com.vaadin</groupId>
    <artifactId>vaadin-swing-bridge</artifactId>
    <version>1.3-SNAPSHOT</version>
  </parent>
  <artifactId>swing-bridge-memory-harness</artifactId>
  <name>Swing Bridge Memory Harness</name>
  <description>Records the Vaadin Flow server's heap over time (relaxed / under load) via JMX and builds a combined comparison chart. JDK-only tooling.</description>

  <properties>
    <maven.compiler.release>21</maven.compiler.release>
  </properties>

  <build>
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-compiler-plugin</artifactId>
        <version>3.13.0</version>
        <configuration>
          <!-- Use source/target, not the release flag: adding the JDK module
               jdk.attach (for ServerMonitor's com.sun.tools.attach) is not
               compatible with the release flag. -->
          <release combine.self="override"/>
          <source>${maven.compiler.release}</source>
          <target>${maven.compiler.release}</target>
          <compilerArgs>
            <arg>--add-modules=jdk.attach</arg>
          </compilerArgs>
        </configuration>
      </plugin>
    </plugins>
  </build>
</project>
