<?xml version="1.0" encoding="UTF-8" ?>
<!--
Copyright (C) 2013-2026 TU Dortmund University
This file is part of AutomataLib <https://automatalib.net>.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>

    <parent>
        <groupId>net.automatalib</groupId>
        <artifactId>automata-visualization-parent</artifactId>
        <version>13.0.0</version>
        <relativePath>../pom.xml</relativePath>
    </parent>

    <artifactId>automata-dot-visualizer</artifactId>
    <packaging>jar</packaging>

    <name>AutomataLib :: Visualization :: DOT Visualizer</name>
    <description>
        This artifact provides a visualization implementation based on the GraphVIZ DOT (http://www.graphviz.org/) tool.
    </description>

    <dependencies>
        <!-- internal -->
        <dependency>
            <groupId>net.automatalib</groupId>
            <artifactId>automata-api</artifactId>
        </dependency>
        <dependency>
            <groupId>net.automatalib</groupId>
            <artifactId>automata-commons-settings</artifactId>
        </dependency>
        <dependency>
            <groupId>net.automatalib</groupId>
            <artifactId>automata-commons-util</artifactId>
        </dependency>
        <dependency>
            <groupId>net.automatalib</groupId>
            <artifactId>automata-serialization-dot</artifactId>
        </dependency>

        <!-- external -->
        <dependency>
            <groupId>org.slf4j</groupId>
            <artifactId>slf4j-api</artifactId>
        </dependency>

        <!-- build -->
        <dependency>
            <groupId>org.checkerframework</groupId>
            <artifactId>checker-qual</artifactId>
        </dependency>
        <dependency>
            <groupId>org.kohsuke.metainf-services</groupId>
            <artifactId>metainf-services</artifactId>
        </dependency>

        <!-- test -->
        <dependency>
            <groupId>com.github.caciocavallosilano</groupId>
            <artifactId>cacio-tta</artifactId>
        </dependency>
        <dependency>
            <groupId>net.automatalib</groupId>
            <artifactId>automata-core</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>net.automatalib</groupId>
            <artifactId>automata-util</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.assertj</groupId>
            <artifactId>assertj-swing</artifactId>
        </dependency>
        <dependency>
            <groupId>org.assertj</groupId>
            <artifactId>assertj-swing-testng</artifactId>
        </dependency>
        <dependency>
            <groupId>org.testng</groupId>
            <artifactId>testng</artifactId>
        </dependency>
    </dependencies>

    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-surefire-plugin</artifactId>
                <executions>
                    <execution>
                        <id>default-test</id>
                        <configuration>
                            <!-- core is only a testing dependency not defined in module-info.java -->
                            <!-- append to existing argLine to nicely work together with jacoco plugin -->
                            <argLine>
                                @{argLine}
                                --add-reads=net.automatalib.visualization.dot=net.automatalib.core
                                --add-exports=java.desktop/java.awt=ALL-UNNAMED
                                --add-exports=java.desktop/java.awt.peer=ALL-UNNAMED
                                --add-exports=java.desktop/sun.awt.image=ALL-UNNAMED
                                --add-exports=java.desktop/sun.java2d=ALL-UNNAMED
                                --add-exports=java.desktop/java.awt.dnd.peer=ALL-UNNAMED
                                --add-exports=java.desktop/sun.awt=ALL-UNNAMED
                                --add-exports=java.desktop/sun.awt.event=ALL-UNNAMED
                                --add-exports=java.desktop/sun.awt.datatransfer=ALL-UNNAMED
                                --add-exports=java.base/sun.security.action=ALL-UNNAMED
                                --add-opens=java.base/java.util=ALL-UNNAMED
                                --add-opens=java.desktop/java.awt=ALL-UNNAMED
                                --add-opens=java.desktop/sun.java2d=ALL-UNNAMED
                                --add-opens=java.base/java.lang.reflect=ALL-UNNAMED
                            </argLine>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>
</project>
