<?xml version="1.0" encoding="UTF-8"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <modelVersion>4.0.0</modelVersion> <!-- do_not_remove: published-with-gradle-metadata -->
  <groupId>at.yawk.lz4</groupId>
  <artifactId>lz4-java</artifactId>
  <version>1.8.1</version>
  <name>LZ4 Java Compression</name>
  <description>Java bindings and pure Java implementations of LZ4 and XXHash</description>
  <url>https://github.com/lz4/lz4-java</url>
  <licenses>
    <license>
      <name>Apache License, Version 2.0</name>
      <url>https://www.apache.org/licenses/LICENSE-2.0</url>
      <distribution>repo</distribution>
    </license>
  </licenses>
  <developers>
    <developer>
      <id>jpountz</id>
      <name>Adrien Grand</name>
      <email>jpountz@gmail.com</email>
    </developer>
    <developer>
      <id>odaira</id>
      <name>Rei Odaira</name>
      <email>Rei.Odaira@gmail.com</email>
    </developer>
    <developer>
      <id>yawkat</id>
      <name>Jonas Konrad</name>
      <email>me@yawk.at</email>
    </developer>
  </developers>
  <scm>
    <connection>https://github.com/yawkat/lz4-java.git</connection>
    <developerConnection>git@github.com:yawkat/lz4-java.git</developerConnection>
    <tag>d041c28d3d4cd734d7c238206a27fd4768abb21d</tag>
    <url>https://github.com/yawkat/lz4-java</url>
  </scm>
  <properties>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    <project.build.outputTimestamp>1980-01-01T00:00:02Z</project.build.outputTimestamp>
    <generated.sources.dir>${project.build.directory}/generated-sources/mvel</generated.sources.dir>
  </properties>
  <dependencies>
    <dependency>
      <groupId>org.junit.vintage</groupId>
      <artifactId>junit-vintage-engine</artifactId>
      <version>5.11.3</version>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <version>4.13.2</version>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>org.junit.platform</groupId>
      <artifactId>junit-platform-launcher</artifactId>
      <version>1.11.3</version>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>com.carrotsearch.randomizedtesting</groupId>
      <artifactId>randomizedtesting-runner</artifactId>
      <version>2.7.7</version>
      <scope>test</scope>
    </dependency>
  </dependencies>
  <build>
    <sourceDirectory>${project.basedir}/src/java</sourceDirectory>
    <testSourceDirectory>${project.basedir}/src/test</testSourceDirectory>
    <resources>
      <resource>
        <filtering>false</filtering>
        <directory>${project.basedir}/src/resources</directory>
      </resource>
    </resources>
    <testResources>
      <testResource>
        <filtering>false</filtering>
        <directory>${project.basedir}/src/test-resources</directory>
      </testResource>
    </testResources>
    <plugins>
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>build-helper-maven-plugin</artifactId>
        <version>3.6.0</version>
        <executions>
          <execution>
            <id>add-extra-source-roots</id>
            <phase>generate-sources</phase>
            <goals>
              <goal>add-source</goal>
            </goals>
            <configuration>
              <sources>
                <source>${project.basedir}/src/java-unsafe</source>
                <source>${generated.sources.dir}</source>
              </sources>
            </configuration>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <artifactId>maven-compiler-plugin</artifactId>
        <version>3.11.0</version>
        <executions>
          <execution>
            <id>default-compile</id>
            <phase>compile</phase>
            <goals>
              <goal>compile</goal>
            </goals>
            <configuration>
              <source>1.7</source>
              <target>1.7</target>
              <encoding>${project.build.sourceEncoding}</encoding>
              <debug>true</debug>
              <fork>true</fork>
              <jdkToolchain>
                <version>7</version>
              </jdkToolchain>
            </configuration>
          </execution>
          <execution>
            <id>default-testCompile</id>
            <phase>test-compile</phase>
            <goals>
              <goal>testCompile</goal>
            </goals>
            <configuration>
              <release>21</release>
              <encoding>${project.build.sourceEncoding}</encoding>
              <debug>true</debug>
              <fork>true</fork>
            </configuration>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <artifactId>maven-jar-plugin</artifactId>
        <version>3.4.1</version>
        <configuration>
          <archive>
            <addMavenDescriptor>false</addMavenDescriptor>
            <manifestEntries>
              <Automatic-Module-Name>org.lz4.java</Automatic-Module-Name>
            </manifestEntries>
          </archive>
        </configuration>
      </plugin>
      <plugin>
        <artifactId>maven-antrun-plugin</artifactId>
        <version>3.1.0</version>
        <executions>
          <execution>
            <id>mvel-generate-sources</id>
            <phase>generate-sources</phase>
            <goals>
              <goal>run</goal>
            </goals>
            <configuration>
              <target>
                <property name="out.dir" value="${generated.sources.dir}" />
                <property environment="env" />
                <java fork="true" classname="org.mvel2.sh.Main" failonerror="true" dir="${project.basedir}/src/build/source_templates">
                  <sysproperty value="${generated.sources.dir}" key="out.dir" />
                  <classpath refid="maven.plugin.classpath" />
                  <arg value="${project.basedir}/src/build/gen_sources.mvel" />
                </java>
              </target>
            </configuration>
          </execution>
          <execution>
            <id>bnd-wrap-jar</id>
            <phase>package</phase>
            <goals>
              <goal>run</goal>
            </goals>
            <configuration>
              <target>
                <property name="packages.version" value="${project.version}" />
                <property name="ivy.revision" value="${project.version}" />
                <property name="-noextraheaders" value="true" />
                <property name="-reproducible" value="true" />
                <taskdef resource="aQute/bnd/ant/taskdef.properties" classpathref="maven.plugin.classpath" />
                <bndwrap output="${project.build.directory}/${project.build.finalName}-wrapped.jar" trace="true" definitions="${project.basedir}">
                  <fileset includes="${project.build.finalName}.jar" dir="${project.build.directory}" />
                </bndwrap>
                <delete file="${project.build.directory}/${project.build.finalName}.jar" />
                <move file="${project.build.directory}/${project.build.finalName}-wrapped.jar" tofile="${project.build.directory}/${project.build.finalName}.jar" />
              </target>
            </configuration>
          </execution>
        </executions>
        <dependencies>
          <dependency>
            <groupId>biz.aQute.bnd</groupId>
            <artifactId>biz.aQute.bnd.ant</artifactId>
            <version>7.1.0</version>
          </dependency>
          <dependency>
            <groupId>org.mvel</groupId>
            <artifactId>mvel2</artifactId>
            <version>2.5.2.Final</version>
          </dependency>
        </dependencies>
      </plugin>
      <plugin>
        <artifactId>maven-surefire-plugin</artifactId>
        <version>3.2.5</version>
      </plugin>
      <plugin>
        <artifactId>maven-source-plugin</artifactId>
        <version>3.2.0</version>
        <executions>
          <execution>
            <id>attach-sources</id>
            <goals>
              <goal>jar-no-fork</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <artifactId>maven-javadoc-plugin</artifactId>
        <version>3.1.1</version>
        <executions>
          <execution>
            <id>attach-javadocs</id>
            <goals>
              <goal>jar</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <groupId>org.gradlex</groupId>
        <artifactId>gradle-module-metadata-maven-plugin</artifactId>
        <version>1.2</version>
        <executions>
          <execution>
            <goals>
              <goal>gmm</goal>
            </goals>
          </execution>
        </executions>
        <configuration>
          <capabilities>
            <capability>
              <groupId>org.lz4</groupId>
              <artifactId>lz4-java</artifactId>
            </capability>
            <capability>
              <groupId>org.lz4</groupId>
              <artifactId>lz4-pure-java</artifactId>
            </capability>
            <capability>
              <groupId>net.jpountz.lz4</groupId>
              <artifactId>lz4</artifactId>
            </capability>
          </capabilities>
        </configuration>
      </plugin>
    </plugins>
  </build>
  <profiles>
    <profile>
      <id>deploy</id>
      <build>
        <plugins>
          <plugin>
            <artifactId>maven-gpg-plugin</artifactId>
            <version>1.6</version>
            <executions>
              <execution>
                <id>sign-artifacts</id>
                <phase>verify</phase>
                <goals>
                  <goal>sign</goal>
                </goals>
                <configuration>
                  <gpgArguments>
                    <arg>--pinentry-mode</arg>
                    <arg>loopback</arg>
                  </gpgArguments>
                </configuration>
              </execution>
            </executions>
          </plugin>
          <plugin>
            <groupId>org.sonatype.central</groupId>
            <artifactId>central-publishing-maven-plugin</artifactId>
            <version>0.9.0</version>
            <extensions>true</extensions>
            <configuration>
              <publishingServerId>central</publishingServerId>
            </configuration>
          </plugin>
        </plugins>
      </build>
    </profile>
  </profiles>
</project>
