2019-11-06 22:12:51 -05:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
2021-05-13 13:17:40 -04:00
|
|
|
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
2020-03-21 21:54:38 -04:00
|
|
|
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">
|
2019-11-06 22:12:51 -05:00
|
|
|
<modelVersion>4.0.0</modelVersion>
|
2021-05-13 13:17:40 -04:00
|
|
|
<artifactId>spring-boot-springdoc</artifactId>
|
|
|
|
<version>0.0.1-SNAPSHOT</version>
|
|
|
|
<name>spring-boot-springdoc</name>
|
2021-11-09 05:57:03 -05:00
|
|
|
<packaging>jar</packaging>
|
2021-05-13 13:17:40 -04:00
|
|
|
<description>Project for Springdoc integration</description>
|
2020-07-07 23:00:05 -04:00
|
|
|
|
|
|
|
<parent>
|
|
|
|
<groupId>com.baeldung.spring-boot-modules</groupId>
|
|
|
|
<artifactId>spring-boot-modules</artifactId>
|
|
|
|
<version>1.0.0-SNAPSHOT</version>
|
|
|
|
</parent>
|
|
|
|
|
2019-11-06 22:12:51 -05:00
|
|
|
<dependencies>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
<artifactId>spring-boot-starter-web</artifactId>
|
|
|
|
</dependency>
|
2020-09-11 08:49:02 -04:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
<artifactId>spring-boot-starter-validation</artifactId>
|
|
|
|
</dependency>
|
2020-03-09 12:18:44 -04:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
<artifactId>spring-boot-starter-data-jpa</artifactId>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>com.h2database</groupId>
|
|
|
|
<artifactId>h2</artifactId>
|
|
|
|
</dependency>
|
2019-11-06 22:12:51 -05:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
<artifactId>spring-boot-starter-test</artifactId>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
|
|
|
<!-- SpringDoc -->
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.springdoc</groupId>
|
|
|
|
<artifactId>springdoc-openapi-ui</artifactId>
|
2020-03-09 12:18:44 -04:00
|
|
|
<version>${springdoc.version}</version>
|
2020-01-10 08:35:32 -05:00
|
|
|
</dependency>
|
|
|
|
<dependency>
|
2020-03-09 12:18:44 -04:00
|
|
|
<groupId>org.springdoc</groupId>
|
|
|
|
<artifactId>springdoc-openapi-data-rest</artifactId>
|
|
|
|
<version>${springdoc.version}</version>
|
2021-05-13 13:17:40 -04:00
|
|
|
</dependency>
|
|
|
|
<!-- restdocs -->
|
|
|
|
<dependency>
|
2020-05-15 16:37:36 -04:00
|
|
|
<groupId>org.springframework.restdocs</groupId>
|
|
|
|
<artifactId>spring-restdocs-mockmvc</artifactId>
|
|
|
|
<scope>test</scope>
|
2019-11-06 22:12:51 -05:00
|
|
|
</dependency>
|
2020-05-15 16:37:36 -04:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.springframework.restdocs</groupId>
|
|
|
|
<artifactId>spring-restdocs-restassured</artifactId>
|
|
|
|
<scope>test</scope>
|
2021-05-13 13:17:40 -04:00
|
|
|
</dependency>
|
2019-11-06 22:12:51 -05:00
|
|
|
</dependencies>
|
|
|
|
|
|
|
|
<build>
|
|
|
|
<plugins>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
<artifactId>spring-boot-maven-plugin</artifactId>
|
|
|
|
</plugin>
|
2020-05-15 16:37:36 -04:00
|
|
|
<plugin>
|
|
|
|
<groupId>org.asciidoctor</groupId>
|
|
|
|
<artifactId>asciidoctor-maven-plugin</artifactId>
|
|
|
|
<version>${asciidoctor-plugin.version}</version>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<id>generate-docs</id>
|
|
|
|
<phase>package</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>process-asciidoc</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<backend>html</backend>
|
|
|
|
<doctype>book</doctype>
|
|
|
|
<attributes>
|
|
|
|
<snippets>${snippetsDirectory}</snippets>
|
|
|
|
</attributes>
|
|
|
|
<sourceDirectory>src/main/resources/asciidocs</sourceDirectory>
|
|
|
|
<outputDirectory>target/generated-docs</outputDirectory>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
2019-11-06 22:12:51 -05:00
|
|
|
</plugins>
|
2020-05-15 16:37:36 -04:00
|
|
|
<resources>
|
|
|
|
<resource>
|
|
|
|
<filtering>true</filtering>
|
|
|
|
<directory>src/main/resources</directory>
|
|
|
|
<includes>
|
|
|
|
<include>application.properties</include>
|
|
|
|
<include>data.sql</include>
|
2021-05-13 13:17:40 -04:00
|
|
|
<include>schema.sql</include>
|
2020-05-15 16:37:36 -04:00
|
|
|
</includes>
|
|
|
|
</resource>
|
|
|
|
</resources>
|
2019-11-06 22:12:51 -05:00
|
|
|
</build>
|
|
|
|
|
|
|
|
<profiles>
|
|
|
|
<profile>
|
|
|
|
<id>integration</id>
|
|
|
|
<build>
|
|
|
|
<plugins>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
<artifactId>spring-boot-maven-plugin</artifactId>
|
2020-12-11 15:56:46 -05:00
|
|
|
<version>${spring-boot.version}</version>
|
2019-11-06 22:12:51 -05:00
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<id>pre-integration-test</id>
|
|
|
|
<goals>
|
|
|
|
<goal>start</goal>
|
|
|
|
</goals>
|
|
|
|
</execution>
|
|
|
|
<execution>
|
|
|
|
<id>post-integration-test</id>
|
|
|
|
<goals>
|
|
|
|
<goal>stop</goal>
|
|
|
|
</goals>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.springdoc</groupId>
|
|
|
|
<artifactId>springdoc-openapi-maven-plugin</artifactId>
|
|
|
|
<version>0.2</version>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<phase>integration-test</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>generate</goal>
|
|
|
|
</goals>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
<configuration>
|
|
|
|
<apiDocsUrl>http://localhost:8080/api-docs</apiDocsUrl>
|
|
|
|
<outputFileName>openapi.json</outputFileName>
|
|
|
|
<outputDir>${project.build.directory}</outputDir>
|
|
|
|
</configuration>
|
|
|
|
</plugin>
|
|
|
|
</plugins>
|
|
|
|
</build>
|
|
|
|
</profile>
|
|
|
|
</profiles>
|
|
|
|
|
2021-05-13 13:17:40 -04:00
|
|
|
<properties>
|
2022-01-08 01:41:00 -05:00
|
|
|
<springdoc.version>1.6.4</springdoc.version>
|
2021-05-13 13:17:40 -04:00
|
|
|
<asciidoctor-plugin.version>1.5.6</asciidoctor-plugin.version>
|
|
|
|
<snippetsDirectory>${project.build.directory}/generated-snippets</snippetsDirectory>
|
|
|
|
</properties>
|
|
|
|
|
2019-11-06 22:12:51 -05:00
|
|
|
</project>
|