2019-11-06 22:12:51 -05:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
2020-03-21 21:54:38 -04:00
|
|
|
<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">
|
2019-11-06 22:12:51 -05:00
|
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
|
<artifactId>spring-boot-springdoc</artifactId>
|
|
|
|
<version>0.0.1-SNAPSHOT</version>
|
|
|
|
<name>spring-boot-springdoc</name>
|
|
|
|
<packaging>jar</packaging>
|
2019-12-05 09:56:52 -05:00
|
|
|
<description>Project for Springdoc integration</description>
|
2019-11-06 22:12:51 -05:00
|
|
|
|
|
|
|
<parent>
|
|
|
|
<groupId>com.baeldung</groupId>
|
2019-12-05 09:56:52 -05:00
|
|
|
<artifactId>parent-boot-2</artifactId>
|
2019-11-06 22:12:51 -05:00
|
|
|
<version>0.0.1-SNAPSHOT</version>
|
2020-01-26 18:27:24 -05:00
|
|
|
<relativePath>../../parent-boot-2</relativePath>
|
2019-11-06 22:12:51 -05:00
|
|
|
</parent>
|
|
|
|
|
|
|
|
<dependencies>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
<artifactId>spring-boot-starter-web</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>
|
|
|
|
|
2020-05-15 16:37:36 -04:00
|
|
|
<dependency>
|
2020-04-10 17:59:34 -04:00
|
|
|
<groupId>org.hibernate</groupId>
|
|
|
|
<artifactId>hibernate-core</artifactId>
|
|
|
|
<version>${hibernate.version}</version>
|
|
|
|
</dependency>
|
|
|
|
|
2019-11-06 22:12:51 -05:00
|
|
|
<!-- 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>
|
2020-05-15 16:37:36 -04:00
|
|
|
</dependency>
|
|
|
|
|
|
|
|
<!-- restdocs -->
|
|
|
|
<dependency>
|
|
|
|
<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>
|
|
|
|
</dependency>
|
2020-05-24 13:55:06 -04:00
|
|
|
|
|
|
|
<!--kotlin dependencies -->
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.springdoc</groupId>
|
|
|
|
<artifactId>springdoc-openapi-kotlin</artifactId>
|
|
|
|
<version>${springdoc.version}</version>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.jetbrains.kotlin</groupId>
|
|
|
|
<artifactId>kotlin-stdlib-jre8</artifactId>
|
|
|
|
<version>${kotlin.version}</version>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.jetbrains.kotlin</groupId>
|
|
|
|
<artifactId>kotlin-reflect</artifactId>
|
|
|
|
</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>
|
2020-05-24 13:55:06 -04:00
|
|
|
<!-- kotlin -->
|
|
|
|
<plugin>
|
|
|
|
<artifactId>kotlin-maven-plugin</artifactId>
|
|
|
|
<groupId>org.jetbrains.kotlin</groupId>
|
|
|
|
<version>${kotlin.version}</version>
|
|
|
|
<configuration>
|
|
|
|
<compilerPlugins>
|
|
|
|
<plugin>spring</plugin>
|
|
|
|
</compilerPlugins>
|
|
|
|
<jvmTarget>${java.version}</jvmTarget>
|
|
|
|
</configuration>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<id>compile</id>
|
|
|
|
<phase>compile</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>compile</goal>
|
|
|
|
</goals>
|
|
|
|
</execution>
|
|
|
|
<execution>
|
|
|
|
<id>test-compile</id>
|
|
|
|
<phase>test-compile</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>test-compile</goal>
|
|
|
|
</goals>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
<dependencies>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.jetbrains.kotlin</groupId>
|
|
|
|
<artifactId>kotlin-maven-allopen</artifactId>
|
|
|
|
<version>${kotlin.version}</version>
|
|
|
|
</dependency>
|
|
|
|
</dependencies>
|
|
|
|
</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>
|
|
|
|
<include>schema.sql</include>
|
|
|
|
</includes>
|
|
|
|
</resource>
|
|
|
|
</resources>
|
2019-11-06 22:12:51 -05:00
|
|
|
</build>
|
|
|
|
|
2020-03-21 21:54:38 -04:00
|
|
|
<properties>
|
|
|
|
<java.version>1.8</java.version>
|
2020-04-10 17:59:34 -04:00
|
|
|
<hibernate.version>5.2.10.Final</hibernate.version>
|
2020-03-21 21:54:38 -04:00
|
|
|
<springdoc.version>1.2.32</springdoc.version>
|
2020-05-15 16:37:36 -04:00
|
|
|
<asciidoctor-plugin.version>1.5.6</asciidoctor-plugin.version>
|
2020-05-24 13:55:06 -04:00
|
|
|
<kotlin.version>1.2.71</kotlin.version>
|
2020-05-15 16:37:36 -04:00
|
|
|
<snippetsDirectory>${project.build.directory}/generated-snippets</snippetsDirectory>
|
2020-03-21 21:54:38 -04:00
|
|
|
</properties>
|
|
|
|
|
2019-11-06 22:12:51 -05:00
|
|
|
<profiles>
|
|
|
|
<profile>
|
|
|
|
<id>integration</id>
|
|
|
|
<build>
|
|
|
|
<plugins>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
<artifactId>spring-boot-maven-plugin</artifactId>
|
2020-01-10 08:35:32 -05:00
|
|
|
<version>2.2.2.RELEASE</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>
|
|
|
|
|
|
|
|
</project>
|