<?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">
    <parent>
        <groupId>org.jboss</groupId>
        <artifactId>jboss-parent</artifactId>
        <version>36</version>
    </parent>

    <modelVersion>4.0.0</modelVersion>

    <groupId>io.quarkus</groupId>
    <artifactId>quarkus-universe-parent</artifactId>
    <name>Quarkus universe - Parent pom</name>
    <version>1.10.5.Final</version>
    <packaging>pom</packaging>
    <description>Quarkus universe aggregates extensions from Quarkus Core and those developed by the community into a single compatible and versioned set that application developers can reference from their applications to align the dependency versions</description>
    <url>https://github.com/quarkusio/quarkus-universe</url>

    <developers>
        <developer>
            <id>quarkus</id>
            <name>Quarkus Community</name>
            <organization>Red Hat</organization>
            <organizationUrl>http://www.redhat.com</organizationUrl>
        </developer>
    </developers>

    <licenses>
        <license>
            <name>The Apache Software License, Version 2.0</name>
            <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
            <distribution>repo</distribution>
        </license>
    </licenses>

    <scm>
        <url>https://github.com/quarkusio/quarkus-platform</url>
        <connection>scm:git:git@github.com:quarkusio/quarkus-platform.git</connection>
        <developerConnection>scm:git:git@github.com:quarkusio/quarkus-platform.git</developerConnection>
        <tag>1.10.5.Final</tag>
    </scm>

    <issueManagement>
        <system>GitHub</system>
        <url>https://github.com/quarkusio/quarkus/issues/</url>
    </issueManagement>

    <properties>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

        <graalvmHome>${env.GRAALVM_HOME}</graalvmHome>
        <postgres.url>jdbc:postgresql:hibernate_orm_test</postgres.url>

        <quarkus.version>1.10.5.Final</quarkus.version>

        <!-- After upgrading camel-quarkus regenerate the test modules by running

             mvn validate -Pregen-camel -N
        -->
        <camel-quarkus.version>1.4.0</camel-quarkus.version>

        <quarkus-qpid-jms.version>0.21.0</quarkus-qpid-jms.version>
        <quarkus-hazelcast-client.version>1.1.1</quarkus-hazelcast-client.version>
        <debezium.version>1.3.0.Final</debezium.version>
        <debezium-quarkus-outbox.version>1.3.0.Final</debezium-quarkus-outbox.version>
        <quarkus-blaze-persistence.version>1.5.1</quarkus-blaze-persistence.version>
        <quarkus-cassandra-client.version>1.0.0-alpha3</quarkus-cassandra-client.version>

        <!-- After upgrading Kogito regenerate the test modules by running

             mvn validate -Pregen-kogito -N
        -->
        <kogito-quarkus.version>1.0.0.Final</kogito-quarkus.version>
        <optaplanner-quarkus.version>8.0.0.Final</optaplanner-quarkus.version>
        <testcontainers.version>1.14.3</testcontainers.version>

        <build-helper-maven-plugin.version>3.1.0</build-helper-maven-plugin.version>
        <rpkgtests-maven-plugin.version>0.8.0</rpkgtests-maven-plugin.version>
        <groovy-maven-plugin.version>2.1.1</groovy-maven-plugin.version>
        <useReleaseProfile>true</useReleaseProfile>
    </properties>

    <modules>
        <module>bom</module>
        <module>descriptor</module>
        <module>integration-tests</module>
    </modules>

    <distributionManagement>
        <snapshotRepository>
            <id>sonatype-nexus-snapshots</id>
            <url>https://oss.sonatype.org/content/repositories/snapshots</url>
        </snapshotRepository>
        <repository>
            <id>sonatype-nexus-release</id>
            <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
        </repository>
    </distributionManagement>

    <build>
        <pluginManagement>
            <plugins>
                <plugin>
                    <groupId>org.codehaus.mojo</groupId>
                    <artifactId>build-helper-maven-plugin</artifactId>
                    <version>${build-helper-maven-plugin.version}</version>
                </plugin>
                <plugin>
                    <artifactId>maven-surefire-plugin</artifactId>
                    <configuration>
                        <systemProperties>
                            <java.util.logging.manager>org.jboss.logmanager.LogManager</java.util.logging.manager>
                        </systemProperties>
                        <excludedGroups>quarkus-platform-ignore</excludedGroups>
                    </configuration>
                </plugin>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-failsafe-plugin</artifactId>
                    <configuration>
                        <excludedGroups>quarkus-platform-ignore</excludedGroups>
                    </configuration>
                </plugin>
                <plugin>
                    <groupId>org.codehaus.gmaven</groupId>
                    <artifactId>groovy-maven-plugin</artifactId>
                    <version>${groovy-maven-plugin.version}</version>
                </plugin>
                <plugin>
                    <groupId>org.l2x6.rpkgtests</groupId>
                    <artifactId>rpkgtests-maven-plugin</artifactId>
                    <version>${rpkgtests-maven-plugin.version}</version>
                </plugin>
            </plugins>
        </pluginManagement>
    </build>

    <profiles>
        <profile>
            <id>release</id>
            <build>
                <plugins>
                    <plugin>
                        <!--
                        ## IMPORTANT ##
                        In your ~/.m2/settings.xml you need to add and edit the following profile:
                        <profile>
                            <id>release</id>
                            <properties>
                                <gpg.useagent>false</gpg.useagent>
                                <gpg.executable>/usr/local/Cellar/gnupg@1.4/1.4.23_1/bin/gpg1</gpg.executable> <- use gpg1 on Mac OS X <gpg.homedir>~/.gnupg</gpg.homedir>  <- Update to your own directory <gpg.passphrase>******</gpg.passphrase> <- Add your passphrase </properties>
                        </profile>
                         -->
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-gpg-plugin</artifactId>
                        <executions>
                            <execution>
                                <id>sign-artifacts</id>
                                <phase>verify</phase>
                                <goals>
                                    <goal>sign</goal>
                                </goals>
                            </execution>
                        </executions>
                    </plugin>
                </plugins>
            </build>
        </profile>
        <profile>
            <id>regen-camel</id>
            <build>
                <plugins>
                    <plugin>
                        <groupId>org.l2x6.rpkgtests</groupId>
                        <artifactId>rpkgtests-maven-plugin</artifactId>
                        <executions>
                            <execution>
                                <id>create-test-modules</id>
                                <inherited>false</inherited>
                                <goals>
                                    <goal>create-test-modules</goal>
                                </goals>
                                <phase>validate</phase>
                                <configuration>
                                    <testJarXmls>
                                        <testJarXml>
                                            <groupId>org.apache.camel.quarkus</groupId>
                                            <artifactId>camel-quarkus-test-list</artifactId>
                                            <version>${camel-quarkus.version}</version>
                                            <versionPlaceholder>@{camel-quarkus.version}</versionPlaceholder>
                                        </testJarXml>
                                    </testJarXmls>
                                    <testModulesParentDir>integration-tests/camel/invoked/root</testModulesParentDir>
                                    <testModuleArtifactIdReplacers>/^camel-quarkus-integration-test-(.*)$/quarkus-universe-integration-tests-camel-$1/</testModuleArtifactIdReplacers>
                                    <testModuleDirReplacers>/^camel-quarkus-integration-test-(.*)$/camel-$1/</testModuleDirReplacers>
                                    <rpkgModulePomXmlPath>integration-tests/camel/invoked/root/rpkgtests/pom.xml</rpkgModulePomXmlPath>
                                    <rpkgtestsPluginVersion>@{rpkgtests-maven-plugin.version}</rpkgtestsPluginVersion>
                                    <templatesUriBase>file:src/camel-rpkg-templates</templatesUriBase>
                                    <cleanExcludes>
                                        <cleanExclude>pom.xml</cleanExclude>
                                        <cleanExclude>camel-timer-devmode/**</cleanExclude>
                                    </cleanExcludes>
                                </configuration>
                            </execution>
                        </executions>
                    </plugin>
                </plugins>
            </build>
        </profile>
        <profile>
            <id>regen-kogito</id>
            <build>
                <plugins>
                    <plugin>
                        <groupId>org.l2x6.rpkgtests</groupId>
                        <artifactId>rpkgtests-maven-plugin</artifactId>
                        <executions>
                            <execution>
                                <id>create-test-modules</id>
                                <inherited>false</inherited>
                                <goals>
                                    <goal>create-test-modules</goal>
                                </goals>
                                <phase>validate</phase>
                                <configuration>
                                    <testJars>
                                        <testJar>
                                            <groupId>org.kie.kogito</groupId>
                                            <artifactId>kogito-quarkus-integration-test</artifactId>
                                            <version>${kogito-quarkus.version}</version>
                                        </testJar>
                                    </testJars>
                                    <testModulesParentDir>integration-tests/kogito/invoked/root</testModulesParentDir>
                                    <rpkgModulePomXmlPath>integration-tests/kogito/invoked/root/rpkgtests/pom.xml</rpkgModulePomXmlPath>
                                    <rpkgtestsPluginVersion>@{rpkgtests-maven-plugin.version}</rpkgtestsPluginVersion>
                                    <templatesUriBase>file:src/kogito-rpkg-templates</templatesUriBase>
                                </configuration>
                            </execution>
                        </executions>
                    </plugin>
                </plugins>
            </build>
        </profile>
    </profiles>

</project>
