<?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>

    <groupId>org.jetbrains.intellij.deps</groupId>
    <artifactId>libwebp</artifactId>
    <version>1.6.0</version>
    <packaging>pom</packaging>

    <build>
        <plugins>
            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>build-helper-maven-plugin</artifactId>
                <version>3.5.0</version>
                <executions>
                    <execution>
                        <id>attach-artifacts</id>
                        <phase>package</phase>
                        <goals>
                            <goal>attach-artifact</goal>
                        </goals>
                        <configuration>
                            <artifacts>
                                <artifact>
                                    <file>${project.basedir}/webp_jni.tar.gz</file>
                                    <type>tar.gz</type>
                                </artifact>
                                <artifact>
                                    <file>${project.basedir}/libwebp.jar</file>
                                    <type>jar</type>
                                </artifact>
                            </artifacts>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>

    <distributionManagement>
        <repository>
            <id>space</id>
            <name>space</name>
            <url>https://${env.INTELLIJ_DEPENDENCIES_BOT}:${env.INTELLIJ_DEPENDENCIES_TOKEN}@packages.jetbrains.team/maven/p/ij/intellij-dependencies</url>
        </repository>
    </distributionManagement>
</project>
