<?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.3.1.redhat-00011</version>
        <relativePath>../pom.xml</relativePath>
    </parent>

    <artifactId>apicurio-registry-config-generator</artifactId>
    <packaging>jar</packaging>
    <name>Registry :: Docs :: Config Generator</name>
    <description>Configuration documentation generator</description>

    <properties>
        <projectRoot>${project.basedir}/../..</projectRoot>
        <quarkus.version>3.33.1.redhat-00006</quarkus.version>
        <quarkus-operator-sdk.version>7.7.3.redhat-00002</quarkus-operator-sdk.version>
        <java-operator-sdk.version>5.0.4.redhat-00001</java-operator-sdk.version>
    </properties>

    <dependencyManagement>
    <dependencies>
      <dependency>
        <groupId>io.quarkus</groupId>
        <artifactId>quarkus-test-common</artifactId>
        <version>3.33.1</version>
        <scope>provided</scope>
      </dependency>
    </dependencies>
  </dependencyManagement>

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