<?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/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>
    <parent>
        <groupId>io.sermant</groupId>
        <artifactId>sermant-agentcore</artifactId>
        <version>2.3.0</version>
    </parent>

    <artifactId>sermant-agentcore-god</artifactId>
    <name>sermant-agentcore-god</name>

    <description>The core interface package of Sermant.</description>
    <url>https://github.com/sermant-io/Sermant</url>
    <licenses>
        <license>
            <name>Apache License, Version 2.0</name>
            <url>http://www.apache.org/licenses/LICENSE-2.0.html</url>
            <distribution>repo</distribution>
        </license>
    </licenses>
    <scm>
        <url>https://github.com/sermant-io/Sermant</url>
        <connection>scm:git:git://github.com/sermant-io/Sermant.git</connection>
        <developerConnection>scm:git:ssh://github.com:sermant-io/Sermant.git</developerConnection>
    </scm>
    <developers>
        <developer>
            <name>sermant</name>
            <id>sermant</id>
            <email>zhanghaopeng4@huawei.com</email>
            <roles>
                <role>Project Manager</role>
                <role>Developer</role>
            </roles>
            <timezone>+8</timezone>
        </developer>
    </developers>

    <properties>
        <maven.compiler.source>8</maven.compiler.source>
        <maven.compiler.target>8</maven.compiler.target>

        <sermant.basedir>${pom.basedir}/../..</sermant.basedir>
        <package.temp.dir>${sermant.basedir}/${sermant.name}-${project.version}</package.temp.dir>
    </properties>

    <profiles>
        <profile>
            <id>agent</id>
            <activation>
                <activeByDefault>true</activeByDefault>
            </activation>
            <build>
                <plugins>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-shade-plugin</artifactId>
                        <configuration>
                            <outputFile>
                                ${package.temp.dir}/agent/god/${project.artifactId}-${project.version}.jar
                            </outputFile>
                        </configuration>
                    </plugin>
                </plugins>
            </build>
        </profile>
        <profile>
            <id>test</id>
            <build>
                <plugins>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-shade-plugin</artifactId>
                        <configuration>
                            <outputFile>
                                ${package.temp.dir}/agent/god/${project.artifactId}-${project.version}.jar
                            </outputFile>
                        </configuration>
                    </plugin>
                </plugins>
            </build>
        </profile>
        <profile>
            <id>release</id>
            <build>
                <plugins>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-shade-plugin</artifactId>
                    </plugin>
                </plugins>
            </build>
        </profile>
    </profiles>

</project>
