forked from loafle/openapi-generator-original
* fix depricated @Schema(required) since swagger 2.2.5 * use same swagger-annotations version which is used by swagger-core which is a dependency of springdoc * generated java sampes
161 lines
6.0 KiB
XML
161 lines
6.0 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<project xmlns="https://maven.apache.org/POM/4.0.0" xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance"
|
|
xsi:schemaLocation="https://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
|
|
<modelVersion>4.0.0</modelVersion>
|
|
<groupId>org.openapitools</groupId>
|
|
<artifactId>petstore-micronaut-server</artifactId>
|
|
<version>1.0.0</version>
|
|
<packaging>${packaging}</packaging>
|
|
|
|
<parent>
|
|
<groupId>io.micronaut</groupId>
|
|
<artifactId>micronaut-parent</artifactId>
|
|
<version>3.4.3</version>
|
|
</parent>
|
|
|
|
<properties>
|
|
<packaging>jar</packaging>
|
|
<jdk.version>1.8</jdk.version>
|
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
|
<!-- If you are building with JDK 9 or higher, you can uncomment the lines below to set the release version -->
|
|
<!-- <release.version>8</release.version> -->
|
|
<micronaut.version>3.4.3</micronaut.version>
|
|
<exec.mainClass>org.openapitools.Application</exec.mainClass>
|
|
<micronaut.runtime>netty</micronaut.runtime>
|
|
<swagger-annotations-version>2.2.7</swagger-annotations-version>
|
|
</properties>
|
|
|
|
<repositories>
|
|
<repository>
|
|
<id>central</id>
|
|
<url>https://repo.maven.apache.org/maven2</url>
|
|
</repository>
|
|
</repositories>
|
|
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>io.micronaut</groupId>
|
|
<artifactId>micronaut-inject</artifactId>
|
|
<scope>compile</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>io.micronaut</groupId>
|
|
<artifactId>micronaut-validation</artifactId>
|
|
<scope>compile</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>io.micronaut</groupId>
|
|
<artifactId>micronaut-inject-groovy</artifactId>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.spockframework</groupId>
|
|
<artifactId>spock-core</artifactId>
|
|
<scope>test</scope>
|
|
<exclusions>
|
|
<exclusion>
|
|
<groupId>org.codehaus.groovy</groupId>
|
|
<artifactId>groovy-all</artifactId>
|
|
</exclusion>
|
|
</exclusions>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>io.micronaut.test</groupId>
|
|
<artifactId>micronaut-test-spock</artifactId>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>io.micronaut</groupId>
|
|
<artifactId>micronaut-http-client</artifactId>
|
|
<scope>compile</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>io.micronaut</groupId>
|
|
<artifactId>micronaut-http-server-netty</artifactId>
|
|
<scope>compile</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>io.micronaut</groupId>
|
|
<artifactId>micronaut-runtime</artifactId>
|
|
<scope>compile</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>io.micronaut.reactor</groupId>
|
|
<artifactId>micronaut-reactor</artifactId>
|
|
<scope>compile</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>ch.qos.logback</groupId>
|
|
<artifactId>logback-classic</artifactId>
|
|
<scope>runtime</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>io.swagger.core.v3</groupId>
|
|
<artifactId>swagger-annotations</artifactId>
|
|
<version>${swagger-annotations-version}</version>
|
|
</dependency>
|
|
</dependencies>
|
|
|
|
<build>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>io.micronaut.build</groupId>
|
|
<artifactId>micronaut-maven-plugin</artifactId>
|
|
</plugin>
|
|
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-compiler-plugin</artifactId>
|
|
<configuration>
|
|
<!-- Uncomment to enable incremental compilation -->
|
|
<!-- <useIncrementalCompilation>false</useIncrementalCompilation> -->
|
|
|
|
<annotationProcessorPaths combine.children="append">
|
|
<path>
|
|
<groupId>io.micronaut</groupId>
|
|
<artifactId>micronaut-http-validation</artifactId>
|
|
<version>${micronaut.version}</version>
|
|
</path>
|
|
</annotationProcessorPaths>
|
|
<compilerArgs>
|
|
<arg>-Amicronaut.processing.group=org.openapitools</arg>
|
|
<arg>-Amicronaut.processing.module=petstore-micronaut-server</arg>
|
|
</compilerArgs>
|
|
</configuration>
|
|
</plugin>
|
|
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-surefire-plugin</artifactId>
|
|
<configuration>
|
|
<includes>
|
|
<include>**/*Spec.*</include>
|
|
<include>**/*Test.*</include>
|
|
</includes>
|
|
</configuration>
|
|
</plugin>
|
|
|
|
<plugin>
|
|
<groupId>org.codehaus.gmavenplus</groupId>
|
|
<artifactId>gmavenplus-plugin</artifactId>
|
|
<version>1.9.0</version>
|
|
<executions>
|
|
<execution>
|
|
<goals>
|
|
<goal>addSources</goal>
|
|
<goal>generateStubs</goal>
|
|
<goal>compile</goal>
|
|
<goal>removeStubs</goal>
|
|
<goal>addTestSources</goal>
|
|
<goal>generateTestStubs</goal>
|
|
<goal>compileTests</goal>
|
|
<goal>removeTestStubs</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
|
|
</project>
|