<?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>restlight-parent</artifactId>
    <groupId>io.esastack</groupId>
    <version>0.1.1</version>
  </parent>
  <modelVersion>4.0.0</modelVersion>
  <artifactId>restlight-springmvc-annotation</artifactId>
  <name>Restlight :: SpringMvc Annotation</name>
  <build>
    <plugins>
      <plugin>
        <artifactId>maven-source-plugin</artifactId>
        <executions>
          <execution>
            <phase>prepare-package</phase>
            <goals>
              <goal>jar-no-fork</goal>
            </goals>
          </execution>
        </executions>
        <configuration>
          <attach>false</attach>
        </configuration>
      </plugin>
      <plugin>
        <artifactId>maven-shade-plugin</artifactId>
        <executions>
          <execution>
            <phase>package</phase>
            <goals>
              <goal>shade</goal>
            </goals>
            <configuration>
              <artifactSet>
                <includes>
                  <include>org.springframework:spring-web</include>
                </includes>
              </artifactSet>
              <filters>
                <filter>
                  <artifact>org.springframework:spring-web</artifact>
                  <includes>
                    <include>org/springframework/web/bind/annotation/ControllerAdvice**</include>
                    <include>org/springframework/web/bind/annotation/CookieValue**</include>
                    <include>org/springframework/web/bind/annotation/ExceptionHandler**</include>
                    <include>org/springframework/web/bind/annotation/*Mapping**</include>
                    <include>org/springframework/web/bind/annotation/RequestMapping**</include>
                    <include>org/springframework/web/bind/annotation/PathVariable**</include>
                    <include>org/springframework/web/bind/annotation/RequestAttribute**</include>
                    <include>org/springframework/web/bind/annotation/RequestParam**</include>
                    <include>org/springframework/web/bind/annotation/RequestHeader**</include>
                    <include>org/springframework/web/bind/annotation/MatrixVariable**</include>
                    <include>org/springframework/web/bind/annotation/RequestBody**</include>
                    <include>org/springframework/web/bind/annotation/ResponseBody**</include>
                    <include>org/springframework/web/bind/annotation/ResponseStatus**</include>
                    <include>org/springframework/web/bind/annotation/RestController**</include>
                    <include>org/springframework/web/bind/annotation/RequestMethod**</include>
                    <include>org/springframework/web/bind/annotation/ValueConstants**</include>
                    <include>org/springframework/http/HttpStatus**</include>
                  </includes>
                </filter>
              </filters>
              <relocations>
                <relocation>
                  <pattern>org.springframework.web.bind.annotation</pattern>
                  <shadedPattern>esa.restlight.spring.shaded.org.springframework.web.bind.annotation</shadedPattern>
                </relocation>
                <relocation>
                  <pattern>org.springframework.http</pattern>
                  <shadedPattern>esa.restlight.spring.shaded.org.springframework.http</shadedPattern>
                </relocation>
              </relocations>
              <minimizeJar>true</minimizeJar>
              <createSourcesJar>true</createSourcesJar>
              <shadeSourcesContent>true</shadeSourcesContent>
            </configuration>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>
  <dependencies>
    <dependency>
      <groupId>org.junit.jupiter</groupId>
      <artifactId>junit-jupiter</artifactId>
      <version>5.4.2</version>
      <scope>test</scope>
      <exclusions>
        <exclusion>
          <artifactId>junit-jupiter-api</artifactId>
          <groupId>org.junit.jupiter</groupId>
        </exclusion>
        <exclusion>
          <artifactId>junit-jupiter-params</artifactId>
          <groupId>org.junit.jupiter</groupId>
        </exclusion>
        <exclusion>
          <artifactId>junit-jupiter-engine</artifactId>
          <groupId>org.junit.jupiter</groupId>
        </exclusion>
      </exclusions>
    </dependency>
    <dependency>
      <groupId>org.mockito</groupId>
      <artifactId>mockito-core</artifactId>
      <version>3.3.3</version>
      <scope>test</scope>
      <exclusions>
        <exclusion>
          <artifactId>byte-buddy</artifactId>
          <groupId>net.bytebuddy</groupId>
        </exclusion>
        <exclusion>
          <artifactId>byte-buddy-agent</artifactId>
          <groupId>net.bytebuddy</groupId>
        </exclusion>
        <exclusion>
          <artifactId>objenesis</artifactId>
          <groupId>org.objenesis</groupId>
        </exclusion>
      </exclusions>
    </dependency>
  </dependencies>
</project>
