<?xml version="1.0" encoding="UTF-8"?>
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xmlns="http://maven.apache.org/POM/4.0.0"
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <parent>
        <artifactId>bitsensor-its</artifactId>
        <groupId>io.bitsensor.plugins</groupId>
        <version>2.1.1-RC1</version>
    </parent>
    <modelVersion>4.0.0</modelVersion>

    <artifactId>bitsensor-its-spring</artifactId>
    <name>BitSensor ~ ITs ~ Springboot</name>

    <profiles>
        <profile>
            <id>spring - json</id>
            <activation>
                <activeByDefault>true</activeByDefault>
            </activation>
            <dependencies>
                <dependency>
                    <groupId>io.bitsensor.plugins</groupId>
                    <artifactId>apiconnector-bitsensor</artifactId>
                </dependency>
            </dependencies>
        </profile>

        <profile>
            <id>spring - protobuf</id>
            <dependencies>
                <dependency>
                    <groupId>io.bitsensor.plugins</groupId>
                    <artifactId>protobuf-apiconnector</artifactId>
                </dependency>
            </dependencies>
        </profile>
    </profiles>

    <dependencies>
        <dependency>
            <groupId>io.bitsensor.plugins</groupId>
            <artifactId>bitsensor-spring-boot</artifactId>
        </dependency>
        <dependency>
            <groupId>io.bitsensor.plugins</groupId>
            <artifactId>bitsensor-log4j</artifactId>
        </dependency>
        <dependency>
            <groupId>io.bitsensor.plugins</groupId>
            <artifactId>bitsensor-blocking</artifactId>
        </dependency>

        <dependency>
            <groupId>javax.servlet</groupId>
            <artifactId>javax.servlet-api</artifactId>
            <scope>provided</scope>
        </dependency>

        <!-- Spring -->
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-thymeleaf</artifactId>
            <version>${spring-boot.version}</version>
            <exclusions>
                <exclusion>
                    <groupId>org.springframework.boot</groupId>
                    <artifactId>spring-boot-starter-logging</artifactId>
                </exclusion>
            </exclusions>
        </dependency>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-log4j</artifactId>
            <version>1.3.8.RELEASE</version>
        </dependency>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-actuator</artifactId>
            <version>${spring-boot.version}</version>
        </dependency>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-autoconfigure</artifactId>
        </dependency>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-configuration-processor</artifactId>
            <optional>true</optional>
        </dependency>


        <!-- Test dependencies -->
        <dependency>
            <groupId>io.bitsensor.plugins</groupId>
            <artifactId>bitsensor-its-server</artifactId>
            <scope>test</scope>
            <exclusions>
                <exclusion>
                    <groupId>com.github.mjeanroy</groupId>
                    <artifactId>junit-servers-tomcat</artifactId>
                </exclusion>
            </exclusions>
        </dependency>
        <dependency>
            <groupId>io.rest-assured</groupId>
            <artifactId>rest-assured</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-test</artifactId>
            <version>${spring-boot.version}</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring-test</artifactId>
            <version>${spring.version}</version>
        </dependency>
        <dependency>
            <groupId>org.mockito</groupId>
            <artifactId>mockito-core</artifactId>
            <version>1.10.19</version>
        </dependency>
    </dependencies>

    <build>
        <finalName>bitsensor-jersey1x</finalName>
        <plugins>
            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>aspectj-maven-plugin</artifactId>
                <configuration>
                    <source>${java.source-target}</source>
                    <target>${java.source-target}</target>
                    <complianceLevel>${java.source-target}</complianceLevel>
                    <encoding>UTF-8</encoding>
                    <showWeaveInfo>false</showWeaveInfo>
                    <aspectLibraries>
                        <aspectLibrary>
                            <groupId>io.bitsensor.plugins</groupId>
                            <artifactId>bitsensor-core</artifactId>
                        </aspectLibrary>
                    </aspectLibraries>
                    <weaveMainSourceFolder>true</weaveMainSourceFolder>
                </configuration>
                <executions>
                    <execution>
                        <id>aspectj-compile</id>
                        <goals>
                            <goal>compile</goal>
                            <goal>test-compile</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>
</project>