<?xml version="1.0" encoding="UTF-8"?>
<!--

    Copyright © 2015 The Gravitee team (http://gravitee.io)

    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at

        http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.

-->
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <modelVersion>4.0.0</modelVersion>
  <parent>
    <groupId>io.gravitee.apim.rest.api.management</groupId>
    <artifactId>gravitee-apim-rest-api-management</artifactId>
    <version>4.8.30</version>
  </parent>
  <artifactId>gravitee-apim-rest-api-management-rest</artifactId>
  <version>4.8.30</version>
  <name>Gravitee.io APIM - Management API - Management - Rest API</name>
  <licenses>
    <license>
      <name>Apache License, Version 2.0</name>
      <url>http://www.apache.org/licenses/LICENSE-2.0</url>
      <comments>A business-friendly OSS license</comments>
    </license>
  </licenses>
  <properties>
    <swagger-maven-plugin-jakarta.version>2.2.30</swagger-maven-plugin-jakarta.version>
  </properties>
  <dependencies>
    <dependency>
      <groupId>io.gravitee.apim.rest.api.management</groupId>
      <artifactId>gravitee-apim-rest-api-management-security</artifactId>
      <version>${project.version}</version>
    </dependency>
    <dependency>
      <groupId>io.gravitee.apim.rest.api</groupId>
      <artifactId>gravitee-apim-rest-api-rest</artifactId>
      <version>${project.version}</version>
    </dependency>
    <dependency>
      <groupId>io.gravitee.apim.rest.api</groupId>
      <artifactId>gravitee-apim-rest-api-model</artifactId>
      <version>${project.version}</version>
    </dependency>
    <dependency>
      <groupId>io.gravitee.apim.rest.api</groupId>
      <artifactId>gravitee-apim-rest-api-service</artifactId>
      <version>${project.version}</version>
    </dependency>
    <dependency>
      <groupId>io.gravitee.apim.definition</groupId>
      <artifactId>gravitee-apim-definition-jackson</artifactId>
      <version>${project.version}</version>
    </dependency>
    <dependency>
      <groupId>io.gravitee.el</groupId>
      <artifactId>gravitee-expression-language</artifactId>
    </dependency>
    <dependency>
      <groupId>org.springframework</groupId>
      <artifactId>spring-beans</artifactId>
    </dependency>
    <dependency>
      <groupId>org.yaml</groupId>
      <artifactId>snakeyaml</artifactId>
    </dependency>
    <dependency>
      <groupId>org.glassfish.jersey.containers</groupId>
      <artifactId>jersey-container-servlet</artifactId>
    </dependency>
    <dependency>
      <groupId>org.glassfish.jersey.media</groupId>
      <artifactId>jersey-media-json-jackson</artifactId>
    </dependency>
    <dependency>
      <groupId>org.glassfish.jersey.ext</groupId>
      <artifactId>jersey-bean-validation</artifactId>
    </dependency>
    <dependency>
      <groupId>org.glassfish.jersey.media</groupId>
      <artifactId>jersey-media-multipart</artifactId>
    </dependency>
    <dependency>
      <groupId>org.glassfish.jersey.ext</groupId>
      <artifactId>jersey-spring6</artifactId>
    </dependency>
    <dependency>
      <groupId>io.swagger.core.v3</groupId>
      <artifactId>swagger-jaxrs2-jakarta</artifactId>
    </dependency>
    <dependency>
      <groupId>com.fasterxml.jackson.core</groupId>
      <artifactId>jackson-databind</artifactId>
    </dependency>
    <dependency>
      <groupId>com.fasterxml.jackson.core</groupId>
      <artifactId>jackson-annotations</artifactId>
    </dependency>
    <dependency>
      <groupId>com.twelvemonkeys.imageio</groupId>
      <artifactId>imageio-core</artifactId>
    </dependency>
    <dependency>
      <groupId>com.twelvemonkeys.imageio</groupId>
      <artifactId>imageio-jpeg</artifactId>
    </dependency>
    <dependency>
      <groupId>com.twelvemonkeys.imageio</groupId>
      <artifactId>imageio-batik</artifactId>
    </dependency>
    <dependency>
      <groupId>org.apache.xmlgraphics</groupId>
      <artifactId>batik-transcoder</artifactId>
    </dependency>
    <dependency>
      <groupId>org.glassfish.jersey.test-framework.providers</groupId>
      <artifactId>jersey-test-framework-provider-jetty</artifactId>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>org.wiremock</groupId>
      <artifactId>wiremock-standalone</artifactId>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>io.gravitee.apim.rest.api</groupId>
      <artifactId>gravitee-apim-rest-api-service</artifactId>
      <version>${project.version}</version>
      <type>test-jar</type>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>io.gravitee.apim.definition</groupId>
      <artifactId>gravitee-apim-definition-model</artifactId>
      <version>${project.version}</version>
      <type>test-jar</type>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>com.jayway.jsonpath</groupId>
      <artifactId>json-path</artifactId>
    </dependency>
  </dependencies>
  <build>
    <resources>
      <resource>
        <filtering>true</filtering>
        <directory>src/main/resources</directory>
        <includes>
          <include>openapi-configuration.yaml</include>
        </includes>
      </resource>
    </resources>
    <plugins>
      <plugin>
        <groupId>io.swagger.core.v3</groupId>
        <artifactId>swagger-maven-plugin-jakarta</artifactId>
        <version>${swagger-maven-plugin-jakarta.version}</version>
        <executions>
          <execution>
            <goals>
              <goal>resolve</goal>
            </goals>
          </execution>
        </executions>
        <configuration>
          <outputPath>${basedir}/target/classes</outputPath>
          <configurationFilePath>${basedir}/target/classes/openapi-configuration.yaml</configurationFilePath>
          <outputFileName>console-openapi</outputFileName>
          <outputFormat>JSONANDYAML</outputFormat>
          <prettyPrint>false</prettyPrint>
        </configuration>
      </plugin>
    </plugins>
  </build>
</project>
