<?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</groupId>
    <artifactId>vaadin-spreadsheet-flow-parent</artifactId>
    <version>23.6-SNAPSHOT</version>
  </parent>
  <groupId>com.vaadin</groupId>
  <artifactId>vaadin-spreadsheet-flow-client</artifactId>
  <version>23.6-SNAPSHOT</version>
  <name>Vaadin Spreadsheet Flow Client</name>
  <licenses>
    <license>
      <name>Vaadin Commercial License and Service Terms</name>
      <url>https://vaadin.com/commercial-license-and-service-terms</url>
    </license>
  </licenses>
  <properties>
    <gwt.disableCastChecking>true</gwt.disableCastChecking>
    <gwt.report>false</gwt.report>
    <gwt.style>pretty</gwt.style>
    <framework.version>8.20.1</framework.version>
    <gwt.closure>true</gwt.closure>
    <gwt.module>com.vaadin.component.spreadsheet.client.SpreadsheetApi</gwt.module>
    <gwt.hostedWebapp>${project.build.directory}/${project.build.finalName}</gwt.hostedWebapp>
    <gwt.name>SpreadsheetApi</gwt.name>
    <gwt.loglevel>WARN</gwt.loglevel>
    <gwt.target>${gwt.name}.html</gwt.target>
    <gwt.version>2.9.0</gwt.version>
    <gwt.draft.compile>false</gwt.draft.compile>
    <gwt.enableAssertions>false</gwt.enableAssertions>
  </properties>
  <dependencyManagement>
    <dependencies>
      <dependency>
        <groupId>com.google.gwt</groupId>
        <artifactId>gwt</artifactId>
        <version>${gwt.version}</version>
        <type>pom</type>
        <scope>import</scope>
      </dependency>
    </dependencies>
  </dependencyManagement>
  <dependencies>
    <dependency>
      <groupId>com.google.gwt</groupId>
      <artifactId>gwt-servlet</artifactId>
      <version>2.9.0</version>
      <scope>provided</scope>
    </dependency>
    <dependency>
      <groupId>com.google.gwt</groupId>
      <artifactId>gwt-user</artifactId>
      <version>2.9.0</version>
      <scope>provided</scope>
    </dependency>
    <dependency>
      <groupId>com.google.gwt</groupId>
      <artifactId>gwt-dev</artifactId>
      <version>2.9.0</version>
      <scope>provided</scope>
    </dependency>
    <dependency>
      <groupId>com.vaadin</groupId>
      <artifactId>vaadin-client</artifactId>
      <version>8.20.1</version>
      <scope>provided</scope>
    </dependency>
    <dependency>
      <groupId>com.vaadin</groupId>
      <artifactId>vaadin-client-compiler</artifactId>
      <version>8.20.1</version>
      <scope>provided</scope>
    </dependency>
  </dependencies>
  <build>
    <outputDirectory>${project.build.directory}/${project.build.finalName}/WEB-INF/classes</outputDirectory>
    <plugins>
      <plugin>
        <artifactId>maven-jar-plugin</artifactId>
        <configuration>
          <includes>
            <include>META-INF/**</include>
          </includes>
        </configuration>
      </plugin>
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>gwt-maven-plugin</artifactId>
        <version>${gwt.version}</version>
        <executions>
          <execution>
            <goals>
              <goal>compile</goal>
            </goals>
          </execution>
        </executions>
        <configuration>
          <runTarget>${gwt.target}</runTarget>
          <modules>
            <module>${gwt.module}</module>
          </modules>
          <hostedWebapp>${gwt.hostedWebapp}</hostedWebapp>
          <generateJsInteropExports>true</generateJsInteropExports>
          <style>${gwt.style}</style>
          <extraJvmArgs>-Xmx1g -Xms1g</extraJvmArgs>
          <draftCompile>${gwt.draft.compile}</draftCompile>
          <logLevel>${gwt.loglevel}</logLevel>
          <gwtVersion>${gwt.version}</gwtVersion>
          <compileReport>${gwt.report}</compileReport>
          <compileMetrics>${gwt.report}</compileMetrics>
          <webappDirectory>${project.build.directory}/${project.build.finalName}</webappDirectory>
          <optimizationLevel>9</optimizationLevel>
          <bindAddress>0.0.0.0</bindAddress>
          <disableCastChecking>${gwt.disableCastChecking}</disableCastChecking>
          <disableClassMetadata>${gwt.disableClassMetadata}</disableClassMetadata>
          <enableAssertions>${gwt.enableAssertions}</enableAssertions>
          <persistentunitcachedir>${project.build.directory}</persistentunitcachedir>
          <modulePathPrefix>${modulePathPrefix}</modulePathPrefix>
          <gen>${project.build.directory}/gen</gen>
          <workDir>target</workDir>
        </configuration>
      </plugin>
      <plugin>
        <groupId>org.eclipse.jetty</groupId>
        <artifactId>jetty-maven-plugin</artifactId>
        <version>${jetty.version}</version>
        <configuration>
          <scanIntervalSeconds>-1</scanIntervalSeconds>
          <stopPort>8081</stopPort>
          <stopWait>5</stopWait>
          <stopKey>foo</stopKey>
        </configuration>
      </plugin>
      <plugin>
        <artifactId>maven-antrun-plugin</artifactId>
        <version>3.1.0</version>
        <executions>
          <execution>
            <phase>package</phase>
            <goals>
              <goal>run</goal>
            </goals>
            <configuration>
              <target>
                <copy file="${project.build.directory}/${project.build.finalName}/${gwt.name}/${gwt.name}.cache.js" tofile="${basedir}/../vaadin-spreadsheet-flow/src/main/resources/META-INF/resources/frontend/vaadin-spreadsheet/spreadsheet-export.js"></copy>
              </target>
            </configuration>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <groupId>org.sonatype.plugins</groupId>
        <artifactId>nexus-staging-maven-plugin</artifactId>
        <configuration>
          <skipNexusStagingDeployMojo>true</skipNexusStagingDeployMojo>
        </configuration>
      </plugin>
    </plugins>
  </build>
</project>
