<?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>
    <parent>
        <groupId>com.github.davidmoten</groupId>
        <artifactId>openapi-codegen-parent</artifactId>
        <version>0.1.12</version>
    </parent>
    <artifactId>openapi-codegen-runtime</artifactId>
    <name>${project.artifactId}</name>
    <description />
    <packaging>jar</packaging>

    <dependencies>

        <dependency>
            <groupId>com.github.davidmoten</groupId>
            <artifactId>guava-mini</artifactId>
            <version>${guava.mini.version}</version>
        </dependency>

        <dependency>
            <groupId>
                com.github.davidmoten</groupId>
            <artifactId>openapi-codegen-util</artifactId>
            <version>
                ${project.parent.version}</version>
        </dependency>

        <dependency>
            <groupId>
                com.fasterxml.jackson.core</groupId>
            <artifactId>jackson-databind</artifactId>
            <version>
                ${jackson.version}</version>
        </dependency>

        <dependency>
            <groupId>
                com.fasterxml.jackson.datatype</groupId>
            <artifactId>jackson-datatype-jdk8</artifactId>
            <version>
                ${jackson.version}</version>
        </dependency>

        <dependency>
            <groupId>
                com.fasterxml.jackson.datatype</groupId>
            <artifactId>jackson-datatype-jsr310</artifactId>
            <version>
                ${jackson.version}</version>
        </dependency>

        <dependency>
            <groupId>
                jakarta.annotation</groupId>
            <artifactId>jakarta.annotation-api</artifactId>
            <version>
                ${jakarta.annotation.api.version}</version>
        </dependency>

        <dependency>
            <groupId>org.junit.jupiter</groupId>
            <artifactId>
                junit-jupiter</artifactId>
            <version>${junit.version}</version>
            <scope>test</scope>
        </dependency>

        <dependency>
            <groupId>
                com.github.davidmoten</groupId>
            <artifactId>junit-extras</artifactId>
            <version>
                ${junit.extras.version}</version>
            <scope>test</scope>
        </dependency>

    </dependencies>

    <build>
        <resources>
            <resource>
                <directory>
                    src/main/resources</directory>
                <filtering>true</filtering>
            </resource>
        </resources>
        <plugins>
            <plugin>
                <artifactId>
                    maven-compiler-plugin</artifactId>
                <version>${compiler.plugin.version}</version>
                <configuration>
                    <source>
                        ${maven.compiler.target}</source>
                    <target>
                        ${maven.compiler.target}</target>
                </configuration>
            </plugin>

            <plugin>
                <groupId>
                    org.jacoco</groupId>
                <artifactId>jacoco-maven-plugin</artifactId>
                <version>
                    ${jacoco.version}</version>
                <executions>
                    <execution>
                        <goals>
                            <goal>prepare-agent</goal>
                        </goals>
                    </execution>
                    <execution>
                        <id>
                            report</id>
                        <phase>test</phase>
                        <goals>
                            <goal>report</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
            <plugin>
                <groupId>
                    com.github.spotbugs</groupId>
                <artifactId>spotbugs-maven-plugin</artifactId>
                <version>
                    ${spotbugs.plugin.version}</version>
                <configuration>
                    <effort>Max</effort>
                    <threshold>Low</threshold>
                    <xmlOutput>
                        true</xmlOutput>
                    <excludeFilterFile>
                        ${project.basedir}/src/main/spotbugs/filter.xml</excludeFilterFile>
                </configuration>
                <executions>
                    <execution>
                        <goals>
                            <goal>
                                check</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
            <plugin>
                <groupId>
                    org.apache.maven.plugins</groupId>
                <artifactId>maven-pmd-plugin</artifactId>
                <version>
                    ${pmd.version}</version>
                <executions>
                    <execution>
                        <goals>
                            <goal>check</goal>
                            <goal>cpd-check</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>

</project>
