quarkus-kotlin-openapi-test
Used in:
components
- OverviewOverview
- VersionsVersions
- DependentsDependents
- DependenciesDependencies
<dependency>
<groupId>com.ancientlightstudios</groupId>
<artifactId>quarkus-kotlin-openapi-test</artifactId>
<version>0.7.1</version>
</dependency><?xml version="1.0" encoding="UTF-8"?>
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://maven.apache.org/POM/4.0.0"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<artifactId>quarkus-kotlin-openapi-test</artifactId>
<packaging>jar</packaging>
<name>Quarkus Kotlin OpenAPI - Kotlin Test</name>
<description>An example application using the Kotlin OpenAPI generator.</description>
<licenses>
<license>
<name>Apache License, Version 2.0</name>
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
</license>
</licenses>
<parent>
<groupId>com.ancientlightstudios</groupId>
<artifactId>quarkus-kotlin-openapi-root</artifactId>
<version>0.7.1</version>
<relativePath>../pom.xml</relativePath>
</parent>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>io.quarkus.platform</groupId>
<artifactId>quarkus-bom</artifactId>
<version>${quarkus.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
<dependencies>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-resteasy-reactive-jackson</artifactId>
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-rest-client-reactive</artifactId>
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-micrometer-registry-prometheus</artifactId>
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-resteasy-reactive</artifactId>
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-config-yaml</artifactId>
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-kotlin</artifactId>
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-logging-json</artifactId>
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-rest-client-reactive-jackson</artifactId>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.module</groupId>
<artifactId>jackson-module-kotlin</artifactId>
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-elytron-security-properties-file</artifactId>
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-micrometer</artifactId>
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-arc</artifactId>
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-container-image-jib</artifactId>
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-junit5</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.jetbrains.kotlin</groupId>
<artifactId>kotlin-test-junit5</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.ancientlightstudios</groupId>
<artifactId>quarkus-kotlin-openapi</artifactId>
</dependency>
<dependency>
<groupId>com.ancientlightstudios</groupId>
<artifactId>quarkus-kotlin-openapi-extension</artifactId>
</dependency>
<dependency>
<groupId>org.jetbrains.kotlin</groupId>
<artifactId>kotlin-stdlib-jdk8</artifactId>
</dependency>
<dependency>
<groupId>org.jetbrains.kotlin</groupId>
<artifactId>kotlin-test</artifactId>
<version>${kotlin.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>io.rest-assured</groupId>
<artifactId>kotlin-extensions</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.assertj</groupId>
<artifactId>assertj-core</artifactId>
<version>3.25.3</version>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<sourceDirectory>src/main/kotlin</sourceDirectory>
<testSourceDirectory>src/test/kotlin</testSourceDirectory>
<plugins>
<plugin>
<groupId>com.ancientlightstudios</groupId>
<artifactId>quarkus-kotlin-openapi-maven-plugin</artifactId>
<version>${project.version}</version>
<configuration>
<splitByTags>true</splitByTags>
<typeMappings>
<typeMapping>string:uuid=java.util:UUID</typeMapping>
<typeMapping>string:date-time=java.time:Instant</typeMapping>
<typeMapping>string:date=java.time:LocalDate</typeMapping>
</typeMappings>
<sources>
<source>${project.basedir}/src/main/resources/form-test-openapi.yaml</source>
<source>${project.basedir}/src/main/resources/generic-test-openapi.yaml</source>
<source>${project.basedir}/src/main/resources/json-test-openapi.yaml</source>
<source>${project.basedir}/src/main/resources/oneof-test-openapi.yaml</source>
<source>${project.basedir}/src/main/resources/parameter-test-openapi.yaml</source>
<source>${project.basedir}/src/main/resources/plain-test-openapi.yaml</source>
<source>${project.basedir}/src/main/resources/validation-test-openapi.yaml</source>
<source>${project.basedir}/src/main/resources/octetstream-test-openapi.yaml</source>
<source>${project.basedir}/src/main/resources/extension-test-openapi.yaml</source>
<source>${project.basedir}/src/main/resources/default-value-test-openapi.yaml</source>
</sources>
<additionalImports>
<additionalImport>com.ancientlightstudios.example.custom:*</additionalImport>
<additionalImport>com.ancientlightstudios.quarkus.kotlin.openapi.extension:*</additionalImport>
</additionalImports>
</configuration>
<executions>
<execution>
<id>generate-server</id>
<phase>generate-sources</phase>
<goals>
<goal>generate</goal>
</goals>
<configuration>
<interfaceName>Features</interfaceName>
<interfaceType>SERVER</interfaceType>
<packageName>com.ancientlightstudios.example.features.server</packageName>
</configuration>
</execution>
<execution>
<id>generate-client</id>
<phase>generate-test-sources</phase>
<goals>
<goal>test-generate</goal>
</goals>
<configuration>
<interfaceName>Features</interfaceName>
<interfaceType>CLIENT</interfaceType>
<packageName>com.ancientlightstudios.example.features.client</packageName>
</configuration>
</execution>
<execution>
<id>generate-test-client</id>
<phase>generate-test-sources</phase>
<goals>
<goal>test-generate</goal>
</goals>
<configuration>
<interfaceName>Features</interfaceName>
<interfaceType>TEST_CLIENT</interfaceType>
<packageName>com.ancientlightstudios.example.features.testclient</packageName>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>io.quarkus.platform</groupId>
<artifactId>quarkus-maven-plugin</artifactId>
<version>${quarkus.version}</version>
<extensions>true</extensions>
<executions>
<execution>
<goals>
<goal>build</goal>
<goal>generate-code</goal>
<goal>generate-code-tests</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.jetbrains.kotlin</groupId>
<artifactId>kotlin-maven-plugin</artifactId>
<version>${kotlin.version}</version>
<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>
<configuration>
<javaParameters>true</javaParameters>
<jvmTarget>17</jvmTarget>
<compilerPlugins>
<plugin>all-open</plugin>
</compilerPlugins>
<pluginOptions>
<option>all-open:annotation=jakarta.ws.rs.Path</option>
<option>all-open:annotation=jakarta.enterprise.context.ApplicationScoped</option>
<option>all-open:annotation=io.quarkus.test.junit.QuarkusTest</option>
</pluginOptions>
</configuration>
</plugin>
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>release</id>
<build>
<plugins>
<plugin>
<groupId>org.jetbrains.dokka</groupId>
<artifactId>dokka-maven-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>