<?xml version="1.0" encoding="UTF-8"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <modelVersion>4.0.0</modelVersion>
  <parent>
    <groupId>com.vaadin.swingbridge</groupId>
    <artifactId>swingbridge-emulators-parent</artifactId>
    <version>0.1.0-alpha0</version>
  </parent>
  <groupId>com.vaadin.swingbridge</groupId>
  <artifactId>swingbridge-emulators</artifactId>
  <version>0.1.0-alpha0</version>
  <name>SwingBridge Emulators</name>
  <description>Runtime emulation of the Swing API on top of Vaadin: the vaadinx.awt and
        vaadinx.swing classes a Swing application compiles against after rewriting its
        javax.swing imports, each storing Swing state, firing Swing events and driving a Vaadin
        component underneath.</description>
  <licenses>
    <license>
      <name>GPL2 w/ CPE</name>
      <url>https://www.gnu.org/software/classpath/license.html</url>
      <distribution>repo</distribution>
      <comments>GNU General Public License version 2 only, with the "Classpath" exception — the
                same licence as OpenJDK, of which this module is a derivative work. SPDX:
                GPL-2.0-only WITH Classpath-exception-2.0. See LICENSE and PROVENANCE.md, both
                inside this jar's META-INF/.</comments>
    </license>
  </licenses>
  <properties>
    <audit.main>vaadinx.audit.JdkReturnValueDiffer</audit.main>
    <audit.report>target/jdk-return-value-audit.md</audit.report>
  </properties>
  <dependencies>
    <dependency>
      <groupId>com.vaadin.swingbridge</groupId>
      <artifactId>swingbridge-surrogates</artifactId>
      <version>0.1.0-alpha0</version>
      <scope>compile</scope>
    </dependency>
    <dependency>
      <groupId>com.github.mvysny.vaadin-blocking-dialogs</groupId>
      <artifactId>vaadin-blocking-dialogs</artifactId>
      <version>0.1</version>
      <scope>compile</scope>
    </dependency>
    <dependency>
      <groupId>com.github.mvysny.vaadin-blocking-dialogs</groupId>
      <artifactId>vaadin-uifiber-loom</artifactId>
      <version>0.1</version>
      <scope>compile</scope>
    </dependency>
    <dependency>
      <groupId>com.github.mvysny.vaadintabscope</groupId>
      <artifactId>tab-scope</artifactId>
      <version>0.3</version>
      <scope>compile</scope>
    </dependency>
    <dependency>
      <groupId>org.jetbrains</groupId>
      <artifactId>annotations</artifactId>
      <version>26.1.0</version>
      <scope>compile</scope>
    </dependency>
    <dependency>
      <groupId>com.vaadin</groupId>
      <artifactId>vaadin-core</artifactId>
      <version>25.3.0</version>
      <scope>compile</scope>
    </dependency>
    <dependency>
      <groupId>com.vaadin</groupId>
      <artifactId>open</artifactId>
      <version>8.5.0.5</version>
      <scope>compile</scope>
    </dependency>
    <dependency>
      <groupId>org.slf4j</groupId>
      <artifactId>slf4j-api</artifactId>
      <version>2.0.18</version>
      <scope>compile</scope>
    </dependency>
    <dependency>
      <groupId>org.jsoup</groupId>
      <artifactId>jsoup</artifactId>
      <version>1.22.2</version>
      <scope>compile</scope>
    </dependency>
    <dependency>
      <groupId>jakarta.servlet</groupId>
      <artifactId>jakarta.servlet-api</artifactId>
      <version>6.1.0</version>
      <scope>provided</scope>
    </dependency>
  </dependencies>
  <build>
    <resources>
      <resource>
        <directory>src/main/resources</directory>
      </resource>
      <resource>
        <targetPath>META-INF</targetPath>
        <directory>${maven.multiModuleProjectDirectory}</directory>
        <includes>
          <include>LICENSE</include>
          <include>PROVENANCE.md</include>
        </includes>
      </resource>
    </resources>
    <plugins>
      <plugin>
        <artifactId>maven-surefire-plugin</artifactId>
        <configuration>
          <argLine>--add-opens java.base/java.lang=ALL-UNNAMED
                        --add-opens java.desktop/javax.swing=ALL-UNNAMED
                        --add-opens java.desktop/javax.swing.text=ALL-UNNAMED
                        --add-opens java.desktop/javax.swing.table=ALL-UNNAMED
                        --add-opens java.desktop/javax.swing.tree=ALL-UNNAMED
                        --add-opens java.desktop/java.awt=ALL-UNNAMED
                        -Djava.awt.headless=true</argLine>
        </configuration>
      </plugin>
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>exec-maven-plugin</artifactId>
        <configuration>
          <executable>java</executable>
          <classpathScope>test</classpathScope>
          <arguments>
            <argument>--add-opens</argument>
            <argument>java.base/java.lang=ALL-UNNAMED</argument>
            <argument>--add-opens</argument>
            <argument>java.desktop/javax.swing=ALL-UNNAMED</argument>
            <argument>--add-opens</argument>
            <argument>java.desktop/javax.swing.text=ALL-UNNAMED</argument>
            <argument>--add-opens</argument>
            <argument>java.desktop/javax.swing.table=ALL-UNNAMED</argument>
            <argument>--add-opens</argument>
            <argument>java.desktop/javax.swing.tree=ALL-UNNAMED</argument>
            <argument>--add-opens</argument>
            <argument>java.desktop/java.awt=ALL-UNNAMED</argument>
            <argument>-classpath</argument>
            <classpath />
            <argument>${audit.main}</argument>
            <argument>${audit.report}</argument>
          </arguments>
        </configuration>
      </plugin>
    </plugins>
  </build>
</project>
