<?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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>

    <parent>
        <groupId>io.quarkus</groupId>
        <artifactId>quarkus-core-parent</artifactId>
        <version>3.32.4</version>
    </parent>

    <artifactId>quarkus-core</artifactId>
    <name>Quarkus - Core - Runtime</name>
    <description>Quarkus core components</description>

    <dependencies>
        <dependency>
          <groupId>jakarta.annotation</groupId>
          <artifactId>jakarta.annotation-api</artifactId>
        </dependency>
        <dependency>
            <groupId>jakarta.enterprise</groupId>
            <artifactId>jakarta.enterprise.cdi-api</artifactId>
        </dependency>
        <dependency>
            <groupId>jakarta.inject</groupId>
            <artifactId>jakarta.inject-api</artifactId>
        </dependency>
        <dependency>
            <groupId>io.smallrye.common</groupId>
            <artifactId>smallrye-common-os</artifactId>
        </dependency>
        <dependency>
            <groupId>io.quarkus</groupId>
            <artifactId>quarkus-ide-launcher</artifactId>
        </dependency>
        <dependency>
            <groupId>io.quarkus</groupId>
            <artifactId>quarkus-development-mode-spi</artifactId>
        </dependency>
        <dependency>
            <groupId>io.smallrye.config</groupId>
            <artifactId>smallrye-config</artifactId>
            <exclusions>
                <exclusion>
                    <groupId>javax.enterprise</groupId>
                    <artifactId>cdi-api</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>javax.annotation</groupId>
                    <artifactId>javax.annotation-api</artifactId>
                </exclusion>
            </exclusions>
        </dependency>
        <dependency>
            <groupId>org.jboss.logging</groupId>
            <artifactId>jboss-logging</artifactId>
        </dependency>
        <dependency>
            <groupId>org.jboss.logmanager</groupId>
            <artifactId>jboss-logmanager</artifactId>
        </dependency>
        <dependency>
            <groupId>org.jboss.logging</groupId>
            <artifactId>jboss-logging-annotations</artifactId>
            <scope>provided</scope>
         </dependency>
        <dependency>
            <groupId>org.jboss.threads</groupId>
            <artifactId>jboss-threads</artifactId>
        </dependency>
        <dependency>
            <groupId>org.slf4j</groupId>
            <artifactId>slf4j-api</artifactId>
        </dependency>
        <dependency>
            <groupId>org.jboss.slf4j</groupId>
            <artifactId>slf4j-jboss-logmanager</artifactId>
        </dependency>
        <dependency>
            <groupId>org.graalvm.sdk</groupId>
            <artifactId>nativeimage</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>org.wildfly.common</groupId>
            <artifactId>wildfly-common</artifactId>
        </dependency>
        <dependency>
            <groupId>io.quarkus</groupId>
            <artifactId>quarkus-value-registry</artifactId>
        </dependency>
        <dependency>
            <groupId>io.quarkus</groupId>
            <artifactId>quarkus-bootstrap-runner</artifactId>
        </dependency>
        <dependency>
            <groupId>io.quarkus</groupId>
            <artifactId>quarkus-fs-util</artifactId>
        </dependency>
        <!--
          This is required to ensure that the extension processor is built.
          If we move the extension processor to a separate project, this can be removed.
        -->
        <dependency>
            <groupId>io.quarkus</groupId>
            <artifactId>quarkus-extension-processor</artifactId>
            <version>${project.version}</version>
            <type>pom</type>
            <scope>test</scope>
            <exclusions>
                <exclusion>
                    <groupId>*</groupId>
                    <artifactId>*</artifactId>
                </exclusion>
            </exclusions>
        </dependency>

        <dependency>
            <!-- Used to generate the Log class -->
            <groupId>com.github.javaparser</groupId>
            <artifactId>javaparser-core</artifactId>
            <scope>test</scope>
        </dependency>
        <!-- Test -->
        <dependency>
            <groupId>org.junit.jupiter</groupId>
            <artifactId>junit-jupiter</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.assertj</groupId>
            <artifactId>assertj-core</artifactId>
            <scope>test</scope>
        </dependency>
    </dependencies>

    <build>
        <resources>
            <resource>
                <directory>src/main/resources</directory>
                <filtering>true</filtering>
            </resource>
        </resources>
        <plugins>
            <plugin>
                <groupId>io.quarkus</groupId>
                <artifactId>quarkus-extension-maven-plugin</artifactId>
                <configuration>
                    <parentFirstArtifacts>
                        <parentFirstArtifact>io.quarkus:quarkus-value-registry</parentFirstArtifact>
                        <parentFirstArtifact>io.quarkus:quarkus-bootstrap-runner</parentFirstArtifact>
                        <parentFirstArtifact>io.quarkus:quarkus-classloader-commons</parentFirstArtifact>
                        <parentFirstArtifact>io.smallrye.common:smallrye-common-constraint</parentFirstArtifact>
                        <parentFirstArtifact>io.smallrye.common:smallrye-common-cpu</parentFirstArtifact>
                        <parentFirstArtifact>io.smallrye.common:smallrye-common-expression</parentFirstArtifact>
                        <parentFirstArtifact>io.smallrye.common:smallrye-common-function</parentFirstArtifact>
                        <parentFirstArtifact>io.smallrye.common:smallrye-common-io</parentFirstArtifact>
                        <parentFirstArtifact>io.smallrye.common:smallrye-common-net</parentFirstArtifact>
                        <parentFirstArtifact>io.smallrye.common:smallrye-common-os</parentFirstArtifact>
                        <parentFirstArtifact>io.smallrye.common:smallrye-common-ref</parentFirstArtifact>
                        <parentFirstArtifact>org.graalvm.sdk:nativeimage</parentFirstArtifact>
                        <!-- support for GraalVM js -->
                        <parentFirstArtifact>org.graalvm.polyglot:js-community</parentFirstArtifact>
                        <parentFirstArtifact>org.graalvm.js:js-language</parentFirstArtifact>
                        <parentFirstArtifact>org.graalvm.js:js-scriptengine</parentFirstArtifact>
                        <parentFirstArtifact>org.graalvm.polyglot:js</parentFirstArtifact>
                        <parentFirstArtifact>org.graalvm.polyglot:polyglot</parentFirstArtifact>
                        <parentFirstArtifact>org.graalvm.regex:regex</parentFirstArtifact>
                        <parentFirstArtifact>org.graalvm.truffle:truffle-api</parentFirstArtifact>
                        <parentFirstArtifact>org.graalvm.truffle:truffle-runtime</parentFirstArtifact>
                        <parentFirstArtifact>org.graalvm.truffle:truffle-compiler</parentFirstArtifact>
                        <parentFirstArtifact>org.graalvm.truffle:truffle-enterprise</parentFirstArtifact>
                        <parentFirstArtifact>org.graalvm.shadowed:icu4j</parentFirstArtifact>
                        <parentFirstArtifact>org.graalvm.sdk:jniutils</parentFirstArtifact>
                        <parentFirstArtifact>org.graalvm.sdk:word</parentFirstArtifact>
                        <parentFirstArtifact>org.graalvm.sdk:collections</parentFirstArtifact>
                        <parentFirstArtifact>org.graalvm.sdk:nativebridge</parentFirstArtifact>
                        <!-- /support for GraalVM js -->
                        <parentFirstArtifact>io.quarkus:quarkus-bootstrap-core</parentFirstArtifact>
                        <parentFirstArtifact>io.quarkus:quarkus-development-mode-spi</parentFirstArtifact>
                        <parentFirstArtifact>io.quarkus:quarkus-bootstrap-app-model</parentFirstArtifact>
                        <parentFirstArtifact>io.quarkus:quarkus-bootstrap-maven-resolver</parentFirstArtifact>
                        <parentFirstArtifact>org.slf4j:slf4j-api</parentFirstArtifact>
                        <parentFirstArtifact>org.jboss.slf4j:slf4j-jboss-logmanager</parentFirstArtifact>
                        <parentFirstArtifact>org.jboss.logmanager:jboss-logmanager</parentFirstArtifact>
                        <parentFirstArtifact>org.jboss.logging:jboss-logging</parentFirstArtifact>
                        <parentFirstArtifact>org.apache.maven:maven-model</parentFirstArtifact>
                        <parentFirstArtifact>org.apache.maven.resolver:maven-resolver-api</parentFirstArtifact>
                        <parentFirstArtifact>org.apache.maven.resolver:maven-resolver-impl</parentFirstArtifact>
                        <parentFirstArtifact>org.codehaus.plexus:plexus-utils</parentFirstArtifact>
                        <parentFirstArtifact>xml-apis:xml-apis</parentFirstArtifact>
                        <!--
                        This is a temporary fix, we need a better way to be able to
                        add these exclusions outside the quarkus-extension.properties file.
                        -->
                        <parentFirstArtifact>org.opentest4j:opentest4j</parentFirstArtifact>
                        <parentFirstArtifact>org.mockito:mockito-core</parentFirstArtifact>
                        <parentFirstArtifact>org.objenesis:objenesis</parentFirstArtifact>
                        <parentFirstArtifact>net.bytebuddy:byte-buddy</parentFirstArtifact>
                        <parentFirstArtifact>net.bytebuddy:byte-buddy-agent</parentFirstArtifact>
                        <parentFirstArtifact>org.junit.jupiter:junit-jupiter-api</parentFirstArtifact>
                        <parentFirstArtifact>org.junit.jupiter:junit-jupiter-engine</parentFirstArtifact>
                        <parentFirstArtifact>org.junit.jupiter:junit-jupiter-params</parentFirstArtifact>
                        <parentFirstArtifact>org.junit.platform:junit-platform-commons</parentFirstArtifact>
                        <parentFirstArtifact>org.junit.platform:junit-platform-engine</parentFirstArtifact>
                        <parentFirstArtifact>io.quarkus:quarkus-class-change-agent</parentFirstArtifact>
                        <parentFirstArtifact>org.jacoco:org.jacoco.agent:runtime</parentFirstArtifact>
                        <parentFirstArtifact>io.quarkus:quarkus-bootstrap-gradle-resolver</parentFirstArtifact>
                        <parentFirstArtifact>io.quarkus:quarkus-junit-mockito-config</parentFirstArtifact>

                        <!-- Load the junit engine parent first, so it is shared between the outer dev mode
                        process and the test application-->
                        <parentFirstArtifact>org.junit.platform:junit-platform-launcher</parentFirstArtifact>
                        <parentFirstArtifact>org.apiguardian:apiguardian-api</parentFirstArtifact>
                        <parentFirstArtifact>org.junit.platform:junit-platform-engine</parentFirstArtifact>
                        <parentFirstArtifact>org.opentest4j:opentest4j</parentFirstArtifact>
                        <parentFirstArtifact>org.junit.platform:junit-platform-commons</parentFirstArtifact>

                        <!-- Make use of byteman frictionless -->
                        <parentFirstArtifact>org.jboss.byteman:byteman</parentFirstArtifact>
                    </parentFirstArtifacts>
                    <runnerParentFirstArtifacts>
                        <runnerParentFirstArtifact>org.graalvm.sdk:nativeimage</runnerParentFirstArtifact>
                        <!-- support for GraalVM js -->
                        <runnerParentFirstArtifact>org.graalvm.polyglot:js-community</runnerParentFirstArtifact>
                        <runnerParentFirstArtifact>org.graalvm.js:js-language</runnerParentFirstArtifact>
                        <runnerParentFirstArtifact>org.graalvm.js:js-scriptengine</runnerParentFirstArtifact>
                        <runnerParentFirstArtifact>org.graalvm.polyglot:js</runnerParentFirstArtifact>
                        <runnerParentFirstArtifact>org.graalvm.polyglot:polyglot</runnerParentFirstArtifact>
                        <runnerParentFirstArtifact>org.graalvm.regex:regex</runnerParentFirstArtifact>
                        <runnerParentFirstArtifact>org.graalvm.truffle:truffle-api</runnerParentFirstArtifact>
                        <runnerParentFirstArtifact>org.graalvm.truffle:truffle-runtime</runnerParentFirstArtifact>
                        <runnerParentFirstArtifact>org.graalvm.truffle:truffle-compiler</runnerParentFirstArtifact>
                        <runnerParentFirstArtifact>org.graalvm.truffle:truffle-enterprise</runnerParentFirstArtifact>
                        <runnerParentFirstArtifact>org.graalvm.shadowed:icu4j</runnerParentFirstArtifact>
                        <runnerParentFirstArtifact>org.graalvm.sdk:jniutils</runnerParentFirstArtifact>
                        <runnerParentFirstArtifact>org.graalvm.sdk:word</runnerParentFirstArtifact>
                        <runnerParentFirstArtifact>org.graalvm.sdk:collections</runnerParentFirstArtifact>
                        <runnerParentFirstArtifact>org.graalvm.sdk:nativebridge</runnerParentFirstArtifact>
                        <!-- /support for GraalVM js -->
                        <runnerParentFirstArtifact>io.quarkus:quarkus-value-registry</runnerParentFirstArtifact>
                        <runnerParentFirstArtifact>io.quarkus:quarkus-bootstrap-runner</runnerParentFirstArtifact>
                        <runnerParentFirstArtifact>io.quarkus:quarkus-classloader-commons</runnerParentFirstArtifact>
                        <runnerParentFirstArtifact>io.quarkus:quarkus-development-mode-spi</runnerParentFirstArtifact>
                        <!-- logging dependencies always need to be loaded by the JDK ClassLoader -->
                        <runnerParentFirstArtifact>org.jboss.logging:jboss-logging</runnerParentFirstArtifact>
                        <runnerParentFirstArtifact>org.jboss.logmanager:jboss-logmanager</runnerParentFirstArtifact>
                        <!-- These are needed as it's a dependency of the JBoss LogManager so it too needs to be loaded by the JDK ClassLoader -->
                        <runnerParentFirstArtifact>io.smallrye.common:smallrye-common-constraint</runnerParentFirstArtifact>
                        <runnerParentFirstArtifact>io.smallrye.common:smallrye-common-cpu</runnerParentFirstArtifact>
                        <runnerParentFirstArtifact>io.smallrye.common:smallrye-common-expression</runnerParentFirstArtifact>
                        <runnerParentFirstArtifact>io.smallrye.common:smallrye-common-function</runnerParentFirstArtifact>
                        <!-- This is needed because it contains some jar handling classes -->
                        <runnerParentFirstArtifact>io.smallrye.common:smallrye-common-io</runnerParentFirstArtifact>
                        <runnerParentFirstArtifact>io.smallrye.common:smallrye-common-net</runnerParentFirstArtifact>
                        <runnerParentFirstArtifact>io.smallrye.common:smallrye-common-os</runnerParentFirstArtifact>
                        <runnerParentFirstArtifact>io.smallrye.common:smallrye-common-ref</runnerParentFirstArtifact>
                        <!-- QuarkusEntryPoint needs crac class definition -->
                        <runnerParentFirstArtifact>org.crac:crac</runnerParentFirstArtifact>
                        <!-- Make use of byteman frictionless -->
                        <runnerParentFirstArtifact>org.jboss.byteman:byteman</runnerParentFirstArtifact>
                    </runnerParentFirstArtifacts>
                    <excludedArtifacts>
                        <excludedArtifact>io.smallrye:smallrye-config</excludedArtifact>
                        <excludedArtifact>javax.enterprise:cdi-api</excludedArtifact>
                        <excludedArtifact>org.jboss.spec.javax.annotation:jboss-annotations-api_1.2_spec</excludedArtifact>
                        <excludedArtifact>org.jboss.spec.javax.annotation:jboss-annotations-api_1.3_spec</excludedArtifact>
                        <!-- excludedArtifact>javax.inject:javax.inject</excludedArtifact needed to initialize the Maven resolver in the CLI -->
                        <excludedArtifact>org.jboss.spec.javax.interceptor:jboss-interceptors-api_1.2_spec</excludedArtifact>
                        <excludedArtifact>org.glassfish:javax.el</excludedArtifact>
                        <excludedArtifact>javax.annotation:javax.annotation-api</excludedArtifact>
                        <excludedArtifact>com.sun.activation:jakarta.activation</excludedArtifact>
                        <excludedArtifact>com.sun.activation:javax.activation</excludedArtifact>
                        <excludedArtifact>org.glassfish:jakarta.el</excludedArtifact>
                        <excludedArtifact>org.jboss.spec.javax.ws.rs:jboss-jaxrs-api_2.1_spec</excludedArtifact>
                        <excludedArtifact>org.jboss.spec.javax.xml.bind:jboss-jaxb-api_2.3_spec</excludedArtifact>
                        <excludedArtifact>org.jboss.spec.javax.transaction:jboss-transaction-api_1.3_spec</excludedArtifact>
                    </excludedArtifacts>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <executions>
                    <execution>
                        <id>default-compile</id>
                        <phase>compile</phase>
                        <goals>
                            <goal>compile</goal>
                        </goals>
                        <configuration>
                            <annotationProcessorPaths>
                                <path>
                                    <groupId>io.quarkus</groupId>
                                    <artifactId>quarkus-extension-processor</artifactId>
                                    <version>${project.version}</version>
                                </path>
                            </annotationProcessorPaths>
                            <compilerArgs>
                                <arg>-AsplitOnConfigRootDescription=true</arg>
                                <!-- As string concatenation has a non-zero impact on startup, let's disable it for this module -->
                                <arg>-XDstringConcat=inline</arg>
                            </compilerArgs>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
            <plugin>
                <groupId>de.thetaphi</groupId>
                <artifactId>forbiddenapis</artifactId>
                <configuration>
                    <excludes>
                        <exclude>**/Target_org_wildfly_common_net*</exclude>
                    </excludes>
                </configuration>
            </plugin>
        </plugins>
    </build>

</project>
