<?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-devtools-all</artifactId>
        <version>1.3.2.Final-redhat-00001</version>
    </parent>

    <artifactId>quarkus-platform-descriptor-json</artifactId>
    <name>Quarkus - Dev tools - Platform Descriptor - JSON</name>

    <build>
        <resources>
            <resource>
                <directory>src/main/resources</directory>
            </resource>
            <resource>
                <directory>src/main/filtered</directory>
                <filtering>true</filtering>
            </resource>
        </resources>
        <plugins>
            <plugin>
                <artifactId>maven-dependency-plugin</artifactId>
                <executions>
                    <execution>
                        <id>copy-bom</id>
                        <goals>
                            <goal>copy</goal>
                        </goals>
                        <configuration>
                            <artifactItems>
                                <artifactItem>
                                    <groupId>io.quarkus</groupId>
                                    <artifactId>quarkus-bom</artifactId>
                                    <version>${project.version}</version>
                                    <type>pom</type>
                                    <outputDirectory>${project.build.outputDirectory}/quarkus-bom</outputDirectory>
                                    <destFileName>pom.xml</destFileName>
                                </artifactItem>
                            </artifactItems>
                        </configuration>
                    </execution>
                    <execution>
                        <id>copy-bom-descriptor-json</id>
                        <goals>
                            <goal>copy</goal>
                        </goals>
                        <configuration>
                            <artifactItems>
                                <artifactItem>
                                    <groupId>io.quarkus</groupId>
                                    <artifactId>quarkus-bom-descriptor-json</artifactId>
                                    <version>${project.version}</version>
                                    <type>json</type>
                                    <outputDirectory>${project.build.outputDirectory}/quarkus-bom-descriptor</outputDirectory>
                                    <destFileName>extensions.json</destFileName>
                                </artifactItem>
                            </artifactItems>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>

    <dependencies>
        <dependency>
            <groupId>io.quarkus</groupId>
            <artifactId>quarkus-devtools-common</artifactId>
        </dependency>
        <dependency>
            <groupId>io.quarkus</groupId>
            <artifactId>quarkus-bootstrap-core</artifactId>
        </dependency>
        <dependency>
            <groupId>io.quarkus</groupId>
            <artifactId>quarkus-bom-descriptor-json</artifactId>
            <version>${project.version}</version>
            <type>json</type>
        </dependency>
        <!-- extensions reader -->
        <dependency>
            <groupId>com.fasterxml.jackson.core</groupId>
            <artifactId>jackson-databind</artifactId>
        </dependency>
            <dependency>
      	      <groupId>org.junit.jupiter</groupId>
              <artifactId>junit-jupiter</artifactId>
            <scope>test</scope>
        </dependency>
        
    </dependencies>
</project>
