<?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>io.apicurio</groupId>
        <artifactId>apicurio-registry-docs</artifactId>
        <version>3.2.6.redhat-00001</version>
        <relativePath>../pom.xml</relativePath>
    </parent>

    <artifactId>apicurio-registry-config-generator</artifactId>
    <packaging>jar</packaging>
    <name>apicurio-registry-config-generator</name>
    <description>Configuration documentation generator</description>

    <properties>
        <projectRoot>${project.basedir}/../..</projectRoot>
        <snakeyaml.version>2.6.0.redhat-00001</snakeyaml.version>
        <jandex.version>3.5.3.redhat-00001</jandex.version>
        <quarkus.version>3.27.4.redhat-00002</quarkus.version>
        <protobuf.version>4.34.1.redhat-00001</protobuf.version>
        <quarkus-operator-sdk.version>7.2.0.redhat-00001</quarkus-operator-sdk.version>
        <java-operator-sdk.version>5.0.4.redhat-00001</java-operator-sdk.version>
        <jackson-datatype-json-org.version>2.18.8.redhat-00003</jackson-datatype-json-org.version>
    </properties>

    <dependencies>
        <dependency>
            <groupId>io.apicurio</groupId>
            <artifactId>apicurio-registry-config-definitions</artifactId>
            <version>${project.version}</version>
        </dependency>
        <dependency>
            <groupId>org.jboss</groupId>
            <artifactId>jandex</artifactId>
            <version>3.1.7</version>
        </dependency>
    </dependencies>

    <build>
        <plugins>
            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>exec-maven-plugin</artifactId>
                <executions>
                    <execution>
                        <id>generate-config-docs</id>
                        <goals>
                            <goal>java</goal>
                        </goals>
                        <phase>process-classes</phase>
                        <configuration>
                            <mainClass>io.apicurio.registry.docs.GenerateAllConfigPartial</mainClass>
                            <arguments>
                                <argument>${project.version}</argument>
                                <argument>${project.basedir}/..</argument>
                                <argument>${project.version}</argument>
                            </arguments>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>

</project>
