<?xml version="1.0" encoding="UTF-8"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://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>
  <groupId>com.feedzai.openml.lightgbm</groupId>
  <artifactId>lightgbm-lib</artifactId>
  <version>3.0.0</version>
  <name>Openml LightGBM lib</name>
  <description>LightGBM build for Java generated with make-lightgbm.

        Build created with command: `bash make.sh v3.0.0 3.0.0`

        ---

        Build info:

        LIGHTGBM_REPO_URL=https://github.com/microsoft/LightGBM
        LIGHTGBM_VERSION=v3.0.0
        LIGHTGBM_COMMIT=7e11d4aeabd4a39ffa4afb382299c6d00ddf01e7
        PACKAGE_TIMESTAMP=2020/09/01 18:20:49</description>
  <url>https://github.com/feedzai/make-lightgbm</url>
  <organization>
    <name>Feedzai</name>
    <url>https://www.feedzai.com</url>
  </organization>
  <licenses>
    <license>
      <name>The Apache Software License, Version 2.0</name>
      <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
      <distribution>repo</distribution>
    </license>
  </licenses>
  <developers>
    <developer>
      <name>Feedzai OpenML</name>
      <url>https://github.com/feedzai/feedzai-openml-java/issues</url>
      <organization>Feedzai</organization>
    </developer>
  </developers>
  <scm>
    <developerConnection>scm:git:git@github.com:feedzai/feedzai-openml-java.git</developerConnection>
    <url>https://github.com/feedzai/feedzai-openml-java</url>
  </scm>
  <issueManagement>
    <system>GitHub</system>
    <url>https://github.com/feedzai/feedzai-openml-java/issues</url>
  </issueManagement>
  <distributionManagement>
    <repository>
      <id>ossrh</id>
      <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
    </repository>
    <snapshotRepository>
      <id>ossrh</id>
      <url>https://oss.sonatype.org/content/repositories/snapshots</url>
    </snapshotRepository>
  </distributionManagement>
  <properties>
    <lightgbm.version>v3.0.0</lightgbm.version>
    <lightgbmlib.version>3.0.0</lightgbmlib.version>
    <lightgbm.repo.url>https://github.com/microsoft/LightGBM</lightgbm.repo.url>
  </properties>
  <build>
    <resources>
      <resource>
        <filtering>false</filtering>
        <directory>make-lightgbm/build/</directory>
        <includes>
          <include>*.so</include>
          <include>*.so.1.0.0</include>
        </includes>
      </resource>
      <resource>
        <filtering>false</filtering>
        <directory>make-lightgbm/resources/copy_to_build</directory>
        <includes>
          <include>libopenmp.licence</include>
        </includes>
      </resource>
    </resources>
    <plugins>
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>exec-maven-plugin</artifactId>
        <version>3.0.0</version>
        <executions>
          <execution>
            <id>generate-lightgbm-build</id>
            <phase>generate-sources</phase>
            <goals>
              <goal>exec</goal>
            </goals>
            <configuration>
              <executable>${project.basedir}/make.sh</executable>
              <workingDirectory>${project.basedir}</workingDirectory>
              <arguments>
                <argument>${lightgbm.repo.url}</argument>
                <argument>${lightgbm.version}</argument>
                <argument>${lightgbmlib.version}</argument>
              </arguments>
            </configuration>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <artifactId>maven-antrun-plugin</artifactId>
        <executions>
          <execution>
            <phase>generate-resources</phase>
            <goals>
              <goal>run</goal>
            </goals>
            <configuration>
              <tasks>
                <echo message="unzipping file" />
                <unzip src="${basedir}/make-lightgbm/build/lightgbmlib.jar" dest="${project.build.directory}/classes" />
              </tasks>
            </configuration>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <artifactId>maven-source-plugin</artifactId>
        <executions>
          <execution>
            <id>attach-sources</id>
            <goals>
              <goal>jar</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <artifactId>maven-jar-plugin</artifactId>
        <executions>
          <execution>
            <goals>
              <goal>jar</goal>
            </goals>
            <configuration>
              <classifier>javadoc</classifier>
              <classesDirectory>${basedir}/javadoc</classesDirectory>
            </configuration>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>
  <profiles>
    <profile>
      <id>release</id>
      <activation>
        <property>
          <name>performRelease</name>
          <value>true</value>
        </property>
      </activation>
      <build>
        <plugins>
          <plugin>
            <artifactId>maven-gpg-plugin</artifactId>
            <version>1.4</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.7</version>
            <extensions>true</extensions>
            <configuration>
              <serverId>ossrh</serverId>
              <nexusUrl>https://oss.sonatype.org/</nexusUrl>
              <autoReleaseAfterClose>true</autoReleaseAfterClose>
              <stagingProgressTimeoutMinutes>10</stagingProgressTimeoutMinutes>
            </configuration>
          </plugin>
        </plugins>
      </build>
      <properties>
        <gpg.defaultKeyring>false</gpg.defaultKeyring>
        <gpg.keyname>${env.PGP_KEY_ID}</gpg.keyname>
        <gpg.homedir>${user.dir}/.gnupg</gpg.homedir>
        <gpg.passphrase>${env.PGP_PASS}</gpg.passphrase>
        <gpg.executable>gpg</gpg.executable>
      </properties>
    </profile>
  </profiles>
</project>
