<?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-root</artifactId>
    <version>8.26.0</version>
  </parent>
  <groupId>com.vaadin</groupId>
  <artifactId>vaadin-compatibility-themes</artifactId>
  <version>8.26.0</version>
  <name>vaadin-compatibility-themes</name>
  <description>Vaadin compatibility themes</description>
  <url>https://vaadin.com/</url>
  <organization>
    <name>Vaadin Ltd</name>
  </organization>
  <licenses>
    <license>
      <name>Vaadin Commercial License</name>
      <url>https://vaadin.com/commercial-license-and-service-terms</url>
      <distribution>repo</distribution>
    </license>
  </licenses>
  <developers>
    <developer>
      <id>hesara</id>
      <name>Henri Sara</name>
      <email>hesara@vaadin.com</email>
      <organization>Vaadin</organization>
      <organizationUrl>http://vaadin.com</organizationUrl>
      <timezone>+2</timezone>
    </developer>
  </developers>
  <scm>
    <connection>scm:git:git://github.com/vaadin/framework.git/vaadin-compatibility-themes</connection>
    <developerConnection>scm:git:git://github.com/vaadin/framework.git/vaadin-compatibility-themes</developerConnection>
    <url>https://github.com/vaadin/framework/vaadin-compatibility-themes</url>
  </scm>
  <distributionManagement>
    <repository>
      <id>vaadin-staging</id>
      <name>Vaadin release staging repository</name>
      <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
    </repository>
    <snapshotRepository>
      <id>vaadin-snapshots</id>
      <name>Vaadin snapshot repository</name>
      <url>https://oss.sonatype.org/content/repositories/vaadin-snapshots/</url>
    </snapshotRepository>
  </distributionManagement>
  <properties>
    <sonar.skip>true</sonar.skip>
  </properties>
  <dependencies>
    <dependency>
      <groupId>com.vaadin</groupId>
      <artifactId>vaadin-server</artifactId>
      <version>8.26.0</version>
      <scope>provided</scope>
    </dependency>
    <dependency>
      <groupId>com.vaadin</groupId>
      <artifactId>vaadin-sass-compiler</artifactId>
      <version>0.9.13</version>
      <scope>provided</scope>
      <exclusions>
        <exclusion>
          <groupId>com.yahoo.platform.yui</groupId>
          <artifactId>yuicompressor</artifactId>
        </exclusion>
      </exclusions>
    </dependency>
    <dependency>
      <groupId>com.carrotsearch</groupId>
      <artifactId>smartsprites</artifactId>
      <version>0.2.10</version>
      <scope>provided</scope>
    </dependency>
    <dependency>
      <groupId>commons-io</groupId>
      <artifactId>commons-io</artifactId>
      <version>2.11.0</version>
      <scope>provided</scope>
    </dependency>
    <dependency>
      <groupId>org.osgi</groupId>
      <artifactId>osgi.core</artifactId>
      <version>6.0.0</version>
      <scope>provided</scope>
    </dependency>
    <dependency>
      <groupId>org.osgi</groupId>
      <artifactId>osgi.cmpn</artifactId>
      <version>6.0.0</version>
      <scope>provided</scope>
    </dependency>
  </dependencies>
  <repositories>
    <repository>
      <snapshots>
        <enabled>true</enabled>
      </snapshots>
      <id>vaadin-prereleases</id>
      <url>https://maven.vaadin.com/vaadin-prereleases/</url>
    </repository>
  </repositories>
  <build>
    <pluginManagement>
      <plugins>
        <plugin>
          <groupId>org.eclipse.m2e</groupId>
          <artifactId>lifecycle-mapping</artifactId>
          <version>1.0.0</version>
          <configuration>
            <lifecycleMappingMetadata>
              <pluginExecutions>
                <pluginExecution>
                  <pluginExecutionFilter>
                    <groupId>org.codehaus.mojo</groupId>
                    <artifactId>exec-maven-plugin</artifactId>
                    <versionRange>[1.6.0,)</versionRange>
                    <goals>
                      <goal>exec</goal>
                    </goals>
                  </pluginExecutionFilter>
                  <action>
                    <ignore />
                  </action>
                </pluginExecution>
              </pluginExecutions>
            </lifecycleMappingMetadata>
          </configuration>
        </plugin>
      </plugins>
    </pluginManagement>
    <plugins>
      <plugin>
        <artifactId>maven-resources-plugin</artifactId>
        <executions>
          <execution>
            <id>copy-theme-sources</id>
            <phase>generate-resources</phase>
            <goals>
              <goal>copy-resources</goal>
            </goals>
            <configuration>
              <outputDirectory>${project.build.outputDirectory}</outputDirectory>
              <resources>
                <resource>
                  <directory>src/main/themes</directory>
                  <filtering>false</filtering>
                  <excludes>
                    <exclude>**/base.scss</exclude>
                  </excludes>
                </resource>
                <resource>
                  <directory>src/main/themes</directory>
                  <filtering>true</filtering>
                  <includes>
                    <include>**/base.scss</include>
                  </includes>
                </resource>
              </resources>
            </configuration>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <groupId>com.vaadin</groupId>
        <artifactId>vaadin-maven-plugin</artifactId>
        <executions>
          <execution>
            <phase>process-resources</phase>
            <goals>
              <goal>compile-theme</goal>
            </goals>
          </execution>
        </executions>
        <configuration>
          <compressTheme>true</compressTheme>
          <warSourceDirectory>${project.build.outputDirectory}</warSourceDirectory>
        </configuration>
      </plugin>
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>exec-maven-plugin</artifactId>
        <executions>
          <execution>
            <id>compile-legacy-base</id>
            <phase>process-resources</phase>
            <goals>
              <goal>exec</goal>
            </goals>
            <configuration>
              <classpathScope>compile</classpathScope>
              <executable>${java.home}/bin/java</executable>
              <arguments>
                <argument>-classpath</argument>
                <classpath />
                <argument>com.vaadin.sass.SassCompiler</argument>
                <argument>${project.build.outputDirectory}/VAADIN/themes/base/legacy-styles.scss</argument>
                <argument>${project.build.outputDirectory}/VAADIN/themes/base/legacy-styles.css</argument>
              </arguments>
            </configuration>
          </execution>
          <execution>
            <id>compile-legacy-chameleon</id>
            <phase>process-resources</phase>
            <goals>
              <goal>exec</goal>
            </goals>
            <configuration>
              <classpathScope>compile</classpathScope>
              <executable>${java.home}/bin/java</executable>
              <arguments>
                <argument>-classpath</argument>
                <classpath />
                <argument>com.vaadin.sass.SassCompiler</argument>
                <argument>${project.build.outputDirectory}/VAADIN/themes/chameleon/legacy-styles.scss</argument>
                <argument>${project.build.outputDirectory}/VAADIN/themes/chameleon/legacy-styles.css</argument>
              </arguments>
            </configuration>
          </execution>
          <execution>
            <id>compile-legacy-reindeer</id>
            <phase>process-resources</phase>
            <goals>
              <goal>exec</goal>
            </goals>
            <configuration>
              <classpathScope>compile</classpathScope>
              <executable>${java.home}/bin/java</executable>
              <arguments>
                <argument>-classpath</argument>
                <classpath />
                <argument>com.vaadin.sass.SassCompiler</argument>
                <argument>${project.build.outputDirectory}/VAADIN/themes/reindeer/legacy-styles.scss</argument>
                <argument>${project.build.outputDirectory}/VAADIN/themes/reindeer/legacy-styles.css</argument>
              </arguments>
            </configuration>
          </execution>
          <execution>
            <id>compile-legacy-runo</id>
            <phase>process-resources</phase>
            <goals>
              <goal>exec</goal>
            </goals>
            <configuration>
              <classpathScope>compile</classpathScope>
              <executable>${java.home}/bin/java</executable>
              <arguments>
                <argument>-classpath</argument>
                <classpath />
                <argument>com.vaadin.sass.SassCompiler</argument>
                <argument>${project.build.outputDirectory}/VAADIN/themes/runo/legacy-styles.scss</argument>
                <argument>${project.build.outputDirectory}/VAADIN/themes/runo/legacy-styles.css</argument>
              </arguments>
            </configuration>
          </execution>
          <execution>
            <id>smart-sprite-reindeer</id>
            <phase>process-resources</phase>
            <goals>
              <goal>exec</goal>
            </goals>
            <configuration>
              <classpathScope>compile</classpathScope>
              <executable>${java.home}/bin/java</executable>
              <arguments>
                <argument>-classpath</argument>
                <classpath />
                <argument>org.carrot2.labs.smartsprites.SmartSprites</argument>
                <argument>--sprite-png-depth</argument>
                <argument>AUTO</argument>
                <argument>--css-file-encoding</argument>
                <argument>UTF-8</argument>
                <argument>--root-dir-path</argument>
                <argument>${project.build.outputDirectory}/VAADIN/themes/reindeer</argument>
                <argument>--log-level</argument>
                <argument>WARN</argument>
              </arguments>
            </configuration>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <artifactId>maven-antrun-plugin</artifactId>
        <executions>
          <execution>
            <id>repackage-reindeer</id>
            <phase>process-classes</phase>
            <goals>
              <goal>run</goal>
            </goals>
            <configuration>
              <target>
                <property name="reindeer.theme.path" value="${project.build.outputDirectory}/VAADIN/themes/reindeer/" />
                <move file="${reindeer.theme.path}/styles-sprite.css" tofile="${reindeer.theme.path}/styles.css" />
                <move file="${reindeer.theme.path}/legacy-styles-sprite.css" tofile="${reindeer.theme.path}/legacy-styles.css" />
                <gzip destfile="${reindeer.theme.path}/styles.css.gz" src="${reindeer.theme.path}/styles.css" />
              </target>
            </configuration>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <groupId>biz.aQute.bnd</groupId>
        <artifactId>bnd-maven-plugin</artifactId>
      </plugin>
      <plugin>
        <artifactId>maven-jar-plugin</artifactId>
        <configuration>
          <archive>
            <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
            <index>false</index>
            <manifest>
              <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
            </manifest>
          </archive>
        </configuration>
      </plugin>
    </plugins>
  </build>
</project>
