<?xml version="1.0" encoding="UTF-8"?>
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0"
         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>com.lottie4j</groupId>
        <artifactId>lottie4j</artifactId>
        <version>1.2.6</version>
    </parent>

    <artifactId>fxplayer</artifactId>
    <name>Lottie4J JavaFX Player Component</name>

    <dependencies>
        <dependency>
            <groupId>com.lottie4j</groupId>
            <artifactId>core</artifactId>
            <version>1.2.6</version>
            <scope>compile</scope>
        </dependency>

        <dependency>
            <groupId>org.openjfx</groupId>
            <artifactId>javafx-graphics</artifactId>
            <version>${javafx.version}</version>
        </dependency>
        <dependency>
            <groupId>org.openjfx</groupId>
            <artifactId>javafx-controls</artifactId>
            <version>${javafx.version}</version>
        </dependency>
    </dependencies>

    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <version>3.10.1</version>
                <configuration>
                    <source>${java.version}</source>
                    <target>${java.version}</target>
                </configuration>
            </plugin>

            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-surefire-plugin</artifactId>
                <version>3.0.0-M5</version>
                <configuration>
                    <argLine>--add-opens com.lottie4j.fxplayer/com.lottie4j.fxplayer.util=ALL-UNNAMED --add-opens
                        com.lottie4j.fxplayer/com.lottie4j.fxplayer.renderer.layer=ALL-UNNAMED --add-opens
                        com.lottie4j.fxplayer/com.lottie4j.fxplayer.renderer.shape=ALL-UNNAMED --add-opens
                        com.lottie4j.fxplayer/com.lottie4j.fxplayer.renderer.style=ALL-UNNAMED --add-opens
                        com.lottie4j.fxplayer/com.lottie4j.fxplayer.element=ALL-UNNAMED ${surefire.argLine.headless}
                    </argLine>
                </configuration>
            </plugin>

            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-deploy-plugin</artifactId>
                <configuration>
                    <skip>false</skip>
                </configuration>
            </plugin>
        </plugins>
    </build>
</project>
