<?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.1.6.redhat-00011</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>
    <snakeyaml.version>2.5.0.redhat-00001</snakeyaml.version>
    <quarkus.version>3.27.0.redhat-00002</quarkus.version>
    <protobuf.version>4.33.2.redhat-00001</protobuf.version>
    <quarkus-operator-sdk.version>7.2.0.redhat-00001</quarkus-operator-sdk.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>

    <profiles>
        <profile>
            <id>docs-generation</id>
            <activation>
                <property>
                    <name>!skipDocsGen</name>
                </property>
            </activation>
            <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>
        </profile>
    </profiles>

</project>
