Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
67 changes: 0 additions & 67 deletions client/integration-tests/gav-source/pom.xml

This file was deleted.

160 changes: 64 additions & 96 deletions client/integration-tests/gav/pom.xml
Original file line number Diff line number Diff line change
@@ -1,105 +1,73 @@
<?xml version="1.0" encoding="UTF-8"?>
<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 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<artifactId>quarkus-openapi-generator-integration-tests</artifactId>
<groupId>io.quarkiverse.openapi.generator</groupId>
<version>3.0.0-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<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 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<artifactId>quarkus-openapi-generator-integration-tests</artifactId>
<groupId>io.quarkiverse.openapi.generator</groupId>
<version>3.0.0-SNAPSHOT</version>
</parent>

<artifactId>quarkus-openapi-generator-it-gav</artifactId>
<name>Quarkus - OpenAPI Generator - Integration Tests - Client - GAV</name>
<description>Example project for OpenAPI via GAV coordinates</description>
<artifactId>quarkus-openapi-generator-it-gav</artifactId>
<name>Quarkus - OpenAPI Generator - Integration Tests - Client - GAV</name>
<packaging>pom</packaging>

<dependencies>
<dependency>
<groupId>io.quarkiverse.openapi.generator</groupId>
<artifactId>quarkus-openapi-generator</artifactId>
</dependency>
<!-- include yaml GAV coordinates -->
<!-- echo1 should be generated -->
<dependency>
<groupId>io.quarkiverse.openapi.generator</groupId>
<artifactId>quarkus-openapi-generator-gav-source-echo1</artifactId>
<version>3.0.0-SNAPSHOT</version>
<type>yaml</type>
</dependency>
<!-- echo2 will be excluded during test -->
<dependency>
<groupId>io.quarkiverse.openapi.generator</groupId>
<artifactId>quarkus-openapi-generator-gav-source-echo2</artifactId>
<version>3.0.0-SNAPSHOT</version>
<type>yaml</type>
</dependency>
<dependency>
<groupId>org.assertj</groupId>
<artifactId>assertj-core</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-junit5</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-maven-plugin</artifactId>
<extensions>true</extensions>
<executions>
<execution>
<goals>
<goal>build</goal>
<goal>generate-code</goal>
<goal>generate-code-tests</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>native-image</id>
<activation>
<property>
<name>native</name>
</property>
</activation>
<build>
<properties>
<maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<tested.version>${project.version}</tested.version>
<version.maven.invoker.plugin>3.6.1</version.maven.invoker.plugin>
</properties>

<build>
<plugins>
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<skipTests>${native.surefire.skip}</skipTests>
</configuration>
</plugin>
<plugin>
<artifactId>maven-failsafe-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>integration-test</goal>
<goal>verify</goal>
</goals>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-invoker-plugin</artifactId>
<version>${version.maven.invoker.plugin}</version>
<configuration>
<systemPropertyVariables>
<native.image.path>${project.build.directory}/${project.build.finalName}-runner</native.image.path>
<java.util.logging.manager>org.jboss.logmanager.LogManager</java.util.logging.manager>
<maven.home>${maven.home}</maven.home>
</systemPropertyVariables>
<projectsDirectory>src/it</projectsDirectory>
<cloneProjectsTo>${project.build.directory}/it-work</cloneProjectsTo>
<localRepositoryPath>${settings.localRepository}</localRepositoryPath>
<addTestClassPath>true</addTestClassPath>
<streamLogs>true</streamLogs>
<showErrors>true</showErrors>
<properties>
<tested.version>${tested.version}</tested.version>
<!-- pass-through from outer -P… ; fallback provided below -->
<consume.profile>${consume.profile}</consume.profile>
</properties>
<goals>
<goal>clean</goal>
<goal>install</goal>
</goals>
</configuration>
</execution>
</executions>
</plugin>
<executions>
<execution>
<id>it-01-install-gav-sources</id>
<phase>install</phase>
<goals><goal>run</goal></goals>
<configuration>
<pomIncludes>
<pomInclude>01-install-gav-sources/pom.xml</pomInclude>
</pomIncludes>
</configuration>
</execution>
<execution>
<id>it-02-consume-gav</id>
<phase>install</phase>
<goals><goal>run</goal></goals>
<configuration>
<pomIncludes>
<pomInclude>02-consume-gav/pom.xml</pomInclude>
</pomIncludes>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
<properties>
<quarkus.package.type>native</quarkus.package.type>
</properties>
</profile>
</profiles>
</build>

</project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
<!-- 01-install-gav-sources/pom.xml -->
<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
http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<!-- No parent; keep this fully standalone for the invoker -->
<groupId>io.quarkiverse.openapi.generator.it</groupId>
<artifactId>install-gav-sources</artifactId>
<version>1</version>
<packaging>pom</packaging>

<!-- tested.version is injected by the invoker as -Dtested.version=... -->
<properties>
<tested.version>0.0.0-UNSET</tested.version>
</properties>

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-install-plugin</artifactId>
<version>3.1.4</version>
<executions>
<execution>
<id>install-echo1</id>
<phase>package</phase>
<goals><goal>install-file</goal></goals>
<configuration>
<groupId>io.quarkiverse.openapi.generator</groupId>
<artifactId>quarkus-openapi-generator-gav-source-echo1</artifactId>
<version>${tested.version}</version>
<file>${project.basedir}/src/main/openapi/echo1.yaml</file>
<packaging>yaml</packaging>
</configuration>
</execution>
<execution>
<id>install-echo2</id>
<phase>package</phase>
<goals><goal>install-file</goal></goals>
<configuration>
<groupId>io.quarkiverse.openapi.generator</groupId>
<artifactId>quarkus-openapi-generator-gav-source-echo2</artifactId>
<version>${tested.version}</version>
<file>${project.basedir}/src/main/openapi/echo2.yaml</file>
<packaging>yaml</packaging>
</configuration>
</execution>
<execution>
<id>install-other</id>
<phase>package</phase>
<goals><goal>install-file</goal></goals>
<configuration>
<groupId>io.quarkiverse.openapi.generator</groupId>
<artifactId>quarkus-openapi-generator-gav-source-other</artifactId>
<version>${tested.version}</version>
<file>${project.basedir}/src/main/openapi/other.yaml</file>
<packaging>yaml</packaging>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
openapi: 3.0.3
info:
title: echo
version: '1.0.0'
description: ""
paths:
/echo:
post:
summary: Echo
operationId: echo
requestBody:
content:
application/json:
schema:
$ref: "#/components/schemas/Message"
responses:
"200":
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/Echo'
components:
schemas:
Echo:
type: object
properties:
echo:
type: string
Message:
type: object
properties:
message:
type: string
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
openapi: 3.0.3
info:
title: echo
version: '1.0.0'
description: ""
paths:
/echo:
post:
summary: Echo
operationId: echo
requestBody:
content:
application/json:
schema:
$ref: "#/components/schemas/Message"
responses:
"200":
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/Echo'
components:
schemas:
Echo:
type: object
properties:
echo:
type: string
Message:
type: object
properties:
message:
type: string
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Activate the same profile inside the Invoker-run build
invoker.profiles=${consume.profile}

# Optional: default if the outer build didn't set one
invoker.profiles.default=resteasy-classic
Loading