<?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-migration-tool</artifactId>
  <version>0.1.0-alpha0</version>
  <name>SwingBridge Emulators (migration tool)</name>
  <description>The tools run over a Swing application while following the Swing-to-emulators
        migration guide: a hazard scan, an import rewriter, and a static-field sweep, one per
        mechanical phase. Also published under the "dist" classifier as a self-contained
        distribution zip carrying launchers for all three.</description>
  <licenses>
    <license>
      <name>Apache License Version 2.0</name>
      <url>https://www.apache.org/licenses/LICENSE-2.0</url>
      <distribution>repo</distribution>
      <comments>Vaadin-authored, and carrying no OpenJDK expression. SPDX: Apache-2.0. See
                LICENSE-APACHE-2.0 and PROVENANCE.md, both inside this jar's META-INF/.</comments>
    </license>
  </licenses>
  <properties>
    <maven.compiler.release>24</maven.compiler.release>
    <maven-failsafe-plugin.version>3.6.0</maven-failsafe-plugin.version>
    <maven-assembly-plugin.version>3.8.0</maven-assembly-plugin.version>
  </properties>
  <dependencies>
    <dependency>
      <groupId>com.tngtech.archunit</groupId>
      <artifactId>archunit</artifactId>
      <version>1.5.0</version>
      <scope>compile</scope>
    </dependency>
    <dependency>
      <groupId>com.vaadin.swingbridge</groupId>
      <artifactId>swingbridge-migration-annotations</artifactId>
      <version>0.1.0-alpha0</version>
      <scope>compile</scope>
    </dependency>
  </dependencies>
  <build>
    <plugins>
      <plugin>
        <artifactId>maven-jar-plugin</artifactId>
        <version>${maven-jar-plugin.version}</version>
        <configuration>
          <archive>
            <manifest>
              <mainClass>com.vaadin.swingbridge.migration.tool.importswap.ImportSwap</mainClass>
            </manifest>
          </archive>
        </configuration>
      </plugin>
      <plugin>
        <artifactId>maven-assembly-plugin</artifactId>
        <version>${maven-assembly-plugin.version}</version>
        <executions>
          <execution>
            <id>dist</id>
            <phase>package</phase>
            <goals>
              <goal>single</goal>
            </goals>
          </execution>
        </executions>
        <configuration>
          <descriptors>
            <descriptor>src/main/assembly/dist.xml</descriptor>
          </descriptors>
        </configuration>
      </plugin>
      <plugin>
        <artifactId>maven-failsafe-plugin</artifactId>
        <version>${maven-failsafe-plugin.version}</version>
        <executions>
          <execution>
            <goals>
              <goal>integration-test</goal>
              <goal>verify</goal>
            </goals>
          </execution>
        </executions>
        <configuration>
          <systemPropertyVariables>
            <dist.zip>${project.build.directory}/${project.build.finalName}-dist.zip</dist.zip>
            <dist.unpack>${project.build.directory}/dist-it</dist.unpack>
            <dist.version>${project.version}</dist.version>
            <repo.root>${project.basedir}/..</repo.root>
          </systemPropertyVariables>
          <useFile>false</useFile>
          <trimStackTrace>false</trimStackTrace>
        </configuration>
      </plugin>
    </plugins>
  </build>
</project>
