<?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">
  <modelVersion>4.0.0</modelVersion>
  <groupId>video.bug</groupId>
  <artifactId>unlogged-sdk</artifactId>
  <name>Unlogged Java SDK</name>
  <version>0.6.2</version>
  <description>Record java code execution with unlogged java sdk</description>
  <url>https://unlogged.io</url>
  <developers>
    <developer>
      <id>artpar</id>
      <name>Parth Mudgal</name>
      <email>artpar@gmail.com</email>
      <organization>Unlogged Inc</organization>
      <organizationUrl>https://unlogged.io</organizationUrl>
      <roles>
        <role>Developer</role>
      </roles>
      <timezone>IST</timezone>
    </developer>
  </developers>
  <licenses>
    <license>
      <name>AGPL 3</name>
    </license>
  </licenses>
  <scm>
    <developerConnection>scm:git:git@github.com:unloggedio/unlogged-sdk.git</developerConnection>
    <url>https://github.com/unloggedio/unlogged-sdk</url>
  </scm>
  <build>
    <plugins>
      <plugin>
        <artifactId>maven-shade-plugin</artifactId>
        <version>3.3.0</version>
        <executions>
          <execution>
            <phase>package</phase>
            <goals>
              <goal>shade</goal>
            </goals>
          </execution>
        </executions>
        <configuration>
          <relocations>
            <relocation>
              <pattern>org.slf4j</pattern>
              <shadedPattern>selogger.org.slf4j</shadedPattern>
            </relocation>
            <relocation>
              <pattern>ch.qos.logback</pattern>
              <shadedPattern>selogger.ch.qos.logback</shadedPattern>
            </relocation>
            <relocation>
              <pattern>net.bytebuddy</pattern>
              <shadedPattern>selogger.net.bytebuddy</shadedPattern>
            </relocation>
            <relocation>
              <pattern>com.fasterxml.jackson</pattern>
              <shadedPattern>selogger.com.fasterxml.jackson</shadedPattern>
            </relocation>
            <relocation>
              <pattern>org.antlr</pattern>
              <shadedPattern>selogger.org.antlr</shadedPattern>
            </relocation>
            <relocation>
              <pattern>org.xerial</pattern>
              <shadedPattern>selogger.org.xerial</shadedPattern>
            </relocation>
          </relocations>
          <filters>
            <filter>
              <artifact>com.fasterxml.jackson.datatype:jackson-datatype-hibernate5</artifact>
              <excludes>
                <exclude>META-INF/services/com.fasterxml.jackson.databind.Module</exclude>
              </excludes>
            </filter>
            <filter>
              <artifact>com.fasterxml.jackson.datatype:jackson-datatype-joda</artifact>
              <excludes>
                <exclude>META-INF/services/com.fasterxml.jackson.databind.Module</exclude>
              </excludes>
            </filter>
            <filter>
              <artifact>com.fasterxml.jackson.module:jackson-module-paranamer</artifact>
              <excludes>
                <exclude>META-INF/services/com.fasterxml.jackson.databind.Module</exclude>
              </excludes>
            </filter>
            <filter>
              <artifact>com.fasterxml.jackson.datatype:jackson-datatype-jdk8</artifact>
              <excludes>
                <exclude>META-INF/services/com.fasterxml.jackson.databind.Module</exclude>
              </excludes>
            </filter>
            <filter>
              <artifact>com.fasterxml.jackson.datatype:jackson-datatype-jsr310</artifact>
              <excludes>
                <exclude>META-INF/services/com.fasterxml.jackson.databind.Module</exclude>
              </excludes>
            </filter>
            <filter>
              <artifact>com.fasterxml.jackson.module:jackson-module-jakarta-xmlbind-annotations</artifact>
              <excludes>
                <exclude>META-INF/services/com.fasterxml.jackson.databind.Module</exclude>
              </excludes>
            </filter>
            <filter>
              <artifact>com.fasterxml.jackson.module:jackson-module-mrbean</artifact>
              <excludes>
                <exclude>META-INF/services/com.fasterxml.jackson.databind.Module</exclude>
              </excludes>
            </filter>
            <filter>
              <artifact>com.fasterxml.jackson.module:jackson-module-blackbird</artifact>
              <excludes>
                <exclude>META-INF/services/com.fasterxml.jackson.databind.Module</exclude>
              </excludes>
            </filter>
          </filters>
        </configuration>
      </plugin>
      <plugin>
        <artifactId>maven-jar-plugin</artifactId>
        <version>3.3.0</version>
        <configuration>
          <archive>
            <manifest>
              <mainClass>test.App</mainClass>
              <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
            </manifest>
          </archive>
        </configuration>
      </plugin>
      <plugin>
        <artifactId>maven-compiler-plugin</artifactId>
        <version>3.6.0</version>
        <configuration>
          <compilerArgument>-proc:none</compilerArgument>
          <source>1.8</source>
          <target>1.8</target>
        </configuration>
      </plugin>
      <plugin>
        <artifactId>maven-source-plugin</artifactId>
        <version>2.2.1</version>
        <executions>
          <execution>
            <id>attach-sources</id>
            <goals>
              <goal>jar-no-fork</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <artifactId>maven-release-plugin</artifactId>
        <version>2.5.3</version>
        <configuration>
          <autoVersionSubmodules>true</autoVersionSubmodules>
          <useReleaseProfile>false</useReleaseProfile>
          <releaseProfiles>release</releaseProfiles>
          <goals>deploy</goals>
        </configuration>
      </plugin>
      <plugin>
        <artifactId>maven-javadoc-plugin</artifactId>
        <version>2.9.1</version>
        <executions>
          <execution>
            <id>attach-javadocs</id>
            <goals>
              <goal>jar</goal>
            </goals>
          </execution>
        </executions>
        <configuration>
          <sourceFileIncludes>
            <fileInclude>io/unlogged/*.java</fileInclude>
          </sourceFileIncludes>
        </configuration>
      </plugin>
      <plugin>
        <artifactId>maven-gpg-plugin</artifactId>
        <version>1.5</version>
        <executions>
          <execution>
            <id>sign-artifacts</id>
            <phase>verify</phase>
            <goals>
              <goal>sign</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <groupId>org.sonatype.plugins</groupId>
        <artifactId>nexus-staging-maven-plugin</artifactId>
        <version>1.6.13</version>
        <extensions>true</extensions>
        <configuration>
          <serverId>ossrh</serverId>
          <nexusUrl>https://s01.oss.sonatype.org/</nexusUrl>
          <autoReleaseAfterClose>true</autoReleaseAfterClose>
        </configuration>
      </plugin>
      <plugin>
        <groupId>video.bug</groupId>
        <artifactId>rename-file-maven-plugin</artifactId>
        <version>1.1</version>
        <executions>
          <execution>
            <phase>compile</phase>
            <goals>
              <goal>rename-file</goal>
            </goals>
          </execution>
        </executions>
        <configuration>
          <source>(.+).class</source>
          <target>$1.SCL.unlogged</target>
          <workingDirectory>**/${project.build.directory}/classes/io/unlogged/core</workingDirectory>
        </configuration>
      </plugin>
    </plugins>
  </build>
  <profiles>
    <profile>
      <id>jigsaw</id>
    </profile>
    <profile>
      <id>default-jdk</id>
      <dependencies>
        <dependency>
          <groupId>jdk.tools</groupId>
          <artifactId>jdk.tools</artifactId>
          <version>1.6</version>
          <scope>system</scope>
          <systemPath>${java.home}/../lib/tools.jar</systemPath>
        </dependency>
      </dependencies>
    </profile>
    <profile>
      <id>osx-jdk</id>
      <dependencies>
        <dependency>
          <groupId>jdk.tools</groupId>
          <artifactId>jdk.tools</artifactId>
          <version>1.6</version>
          <scope>system</scope>
          <systemPath>${java.home}/../Classes/classes.jar</systemPath>
        </dependency>
      </dependencies>
    </profile>
  </profiles>
  <dependencies>
    <dependency>
      <groupId>io.projectreactor</groupId>
      <artifactId>reactor-core</artifactId>
      <version>3.6.2</version>
      <scope>provided</scope>
    </dependency>
    <dependency>
      <groupId>org.junit.jupiter</groupId>
      <artifactId>junit-jupiter-api</artifactId>
      <version>5.9.3</version>
      <scope>test</scope>
      <exclusions>
        <exclusion>
          <artifactId>opentest4j</artifactId>
          <groupId>org.opentest4j</groupId>
        </exclusion>
        <exclusion>
          <artifactId>junit-platform-commons</artifactId>
          <groupId>org.junit.platform</groupId>
        </exclusion>
        <exclusion>
          <artifactId>apiguardian-api</artifactId>
          <groupId>org.apiguardian</groupId>
        </exclusion>
      </exclusions>
    </dependency>
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <version>4.13.2</version>
      <scope>provided</scope>
    </dependency>
  </dependencies>
  <distributionManagement>
    <repository>
      <id>ossrh</id>
      <url>https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/</url>
    </repository>
    <snapshotRepository>
      <id>ossrh</id>
      <url>https://s01.oss.sonatype.org/content/repositories/snapshots</url>
    </snapshotRepository>
  </distributionManagement>
  <properties>
    <maven.compiler.target>8</maven.compiler.target>
    <maven.compiler.source>8</maven.compiler.source>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    <jackson.scope>compile</jackson.scope>
    <jackson.version>2.13.5</jackson.version>
  </properties>
</project>
