<?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 http://maven.apache.org/maven-v4_0_0.xsd">
  <parent>
    <artifactId>sundr-codegen-pom</artifactId>
    <groupId>io.sundr</groupId>
    <version>0.93.2</version>
  </parent>
  <modelVersion>4.0.0</modelVersion>
  <groupId>io.sundr</groupId>
  <artifactId>sundr-codegen-velocity-nodeps</artifactId>
  <name>Sundrio :: Code generation :: Velocity :: No deps - Uberjar</name>
  <build>
    <plugins>
      <plugin>
        <artifactId>maven-shade-plugin</artifactId>
        <version>${maven-shade-plugin.version}</version>
        <executions>
          <execution>
            <id>normal</id>
            <phase>package</phase>
            <goals>
              <goal>shade</goal>
            </goals>
            <configuration>
              <artifactSet>
                <includes>
                  <include>io.sundr:sundr-codegen-velocity</include>
                  <include>org.apache.velocity:*</include>
                  <include>commons-collections:*</include>
                  <include>commons-lang:*</include>
                </includes>
                <excludes>
                  <exclude>io.sundr:sundr-core</exclude>
                  <exclude>io.sundr:sundr-model*</exclude>
                  <exclude>io.sundr:sundr-adapter*</exclude>
                  <exclude>io.sundr:sundr-codegen-api</exclude>
                  <exclude>io.sundr:sundr-codegen-apt</exclude>
                  <exclude>io.sundr:sundr-codegen-template</exclude>
                </excludes>
              </artifactSet>
              <filters>
                <filter>
                  <artifact>org.apache.velocity:velocity</artifact>
                  <excludes>
                    <exclude>org/apache/velocity/runtime/defaults/directive.properties</exclude>
                  </excludes>
                </filter>
              </filters>
              <relocations>
                <relocation>
                  <pattern>org.apache</pattern>
                  <shadedPattern>io.sundr.deps.org.apache</shadedPattern>
                </relocation>
              </relocations>
              <transformers>
                <transformer />
              </transformers>
              <createDependencyReducedPom>true</createDependencyReducedPom>
            </configuration>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>
  <profiles>
    <profile>
      <id>jdk9</id>
      <dependencies>
        <dependency>
          <groupId>com.sun</groupId>
          <artifactId>tools</artifactId>
          <version>8</version>
          <scope>compile</scope>
          <optional>true</optional>
        </dependency>
      </dependencies>
    </profile>
  </profiles>
  <dependencies>
    <dependency>
      <groupId>io.sundr</groupId>
      <artifactId>sundr-codegen-apt</artifactId>
      <version>0.93.2</version>
      <scope>compile</scope>
    </dependency>
    <dependency>
      <groupId>io.sundr</groupId>
      <artifactId>sundr-codegen-template</artifactId>
      <version>0.93.2</version>
      <scope>compile</scope>
    </dependency>
    <dependency>
      <groupId>com.sun</groupId>
      <artifactId>tools</artifactId>
      <version>8</version>
      <scope>compile</scope>
      <optional>true</optional>
    </dependency>
  </dependencies>
</project>
