Skip to content

Commit e8a178d

Browse files
author
DielN
committed
Add & update mutiny dependency for microprofile
1 parent 850ce3b commit e8a178d

File tree

74 files changed

+8918
-2
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

74 files changed

+8918
-2
lines changed

.github/workflows/samples-java-client-jdk11.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,11 @@ jobs:
6161
- samples/client/petstore/java/rest-assured
6262
- samples/client/petstore/java/rest-assured-jackson
6363
- samples/client/petstore/java/microprofile-rest-client
64+
- samples/client/petstore/java/microprofile-rest-client-mutiny
6465
- samples/client/petstore/java/microprofile-rest-client-3.0
6566
- samples/client/petstore/java/microprofile-rest-client-3.0-jackson
6667
- samples/client/petstore/java/microprofile-rest-client-3.0-jackson-with-xml
68+
- samples/client/petstore/java/microprofile-rest-client-3.0-mutiny
6769
- samples/client/petstore/java/microprofile-rest-client-with-useSingleRequestParameter
6870
- samples/client/petstore/java/apache-httpclient
6971
- samples/client/petstore/java/feign
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
generatorName: java
2+
outputDir: samples/client/petstore/java/microprofile-rest-client-3.0-mutiny
3+
library: microprofile
4+
inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore.yaml
5+
templateDir: modules/openapi-generator/src/main/resources/Java
6+
additionalProperties:
7+
artifactId: microprofile-rest-client-3-mutiny
8+
configKey: petstore
9+
microprofileRestClientVersion: "3.0"
10+
microprofileMutiny: true
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
generatorName: java
2+
outputDir: samples/client/petstore/java/microprofile-rest-client-mutiny
3+
library: microprofile
4+
inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore.yaml
5+
templateDir: modules/openapi-generator/src/main/resources/Java
6+
additionalProperties:
7+
artifactId: microprofile-rest-client-mutiny
8+
configKeyFromClassName: true
9+
microprofileMutiny: true

modules/openapi-generator/src/main/resources/Java/libraries/microprofile/pom.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@
249249
<maven.failsafe.plugin.version>2.6</maven.failsafe.plugin.version>
250250
<build.helper.maven.plugin.version>1.9.1</build.helper.maven.plugin.version>
251251
{{#microprofileMutiny}}
252-
<mutiny.version>1.2.0</mutiny.version>
252+
<mutiny.version>1.10.0</mutiny.version>
253253
{{/microprofileMutiny}}
254254
{{#useReflectionEqualsHashCode}}
255255
<commons.lang3.version>3.17.0</commons.lang3.version>

modules/openapi-generator/src/main/resources/Java/libraries/microprofile/pom_3.0.mustache

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,13 @@
189189
<version>${jakarta.annotation.version}</version>
190190
<scope>provided</scope>
191191
</dependency>
192+
{{#microprofileMutiny}}
193+
<dependency>
194+
<groupId>io.smallrye.reactive</groupId>
195+
<artifactId>mutiny</artifactId>
196+
<version>${mutiny.version}</version>
197+
</dependency>
198+
{{/microprofileMutiny}}
192199
{{#useReflectionEqualsHashCode}}
193200
<!-- For equals and hashCode using reflection -->
194201
<dependency>
@@ -241,6 +248,9 @@
241248
<jandex.maven.plugin.version>1.1.0</jandex.maven.plugin.version>
242249
<maven.failsafe.plugin.version>2.6</maven.failsafe.plugin.version>
243250
<build.helper.maven.plugin.version>1.9.1</build.helper.maven.plugin.version>
251+
{{#microprofileMutiny}}
252+
<mutiny.version>1.10.0</mutiny.version>
253+
{{/microprofileMutiny}}
244254
{{#useReflectionEqualsHashCode}}
245255
<commons.lang3.version>3.17.0</commons.lang3.version>
246256
{{/useReflectionEqualsHashCode}}
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# OpenAPI Generator Ignore
2+
# Generated by openapi-generator https://github.com/openapitools/openapi-generator
3+
4+
# Use this file to prevent files from being overwritten by the generator.
5+
# The patterns follow closely to .gitignore or .dockerignore.
6+
7+
# As an example, the C# client generator defines ApiClient.cs.
8+
# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line:
9+
#ApiClient.cs
10+
11+
# You can match any string of characters against a directory, file or extension with a single asterisk (*):
12+
#foo/*/qux
13+
# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux
14+
15+
# You can recursively match patterns against a directory, file or extension with a double asterisk (**):
16+
#foo/**/qux
17+
# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux
18+
19+
# You can also negate patterns with an exclamation (!).
20+
# For example, you can ignore all files in a docs folder with the file extension .md:
21+
#docs/*.md
22+
# Then explicitly reverse the ignore rule for a single file:
23+
#!docs/README.md
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
.openapi-generator-ignore
2+
README.md
3+
docs/Category.md
4+
docs/ModelApiResponse.md
5+
docs/Order.md
6+
docs/Pet.md
7+
docs/PetApi.md
8+
docs/StoreApi.md
9+
docs/Tag.md
10+
docs/User.md
11+
docs/UserApi.md
12+
pom.xml
13+
src/main/java/org/openapitools/client/api/ApiException.java
14+
src/main/java/org/openapitools/client/api/ApiExceptionMapper.java
15+
src/main/java/org/openapitools/client/api/PetApi.java
16+
src/main/java/org/openapitools/client/api/StoreApi.java
17+
src/main/java/org/openapitools/client/api/UserApi.java
18+
src/main/java/org/openapitools/client/model/Category.java
19+
src/main/java/org/openapitools/client/model/ModelApiResponse.java
20+
src/main/java/org/openapitools/client/model/Order.java
21+
src/main/java/org/openapitools/client/model/Pet.java
22+
src/main/java/org/openapitools/client/model/Tag.java
23+
src/main/java/org/openapitools/client/model/User.java
24+
src/test/java/org/openapitools/client/api/PetApiTest.java
25+
src/test/java/org/openapitools/client/api/StoreApiTest.java
26+
src/test/java/org/openapitools/client/api/UserApiTest.java
27+
src/test/java/org/openapitools/client/model/CategoryTest.java
28+
src/test/java/org/openapitools/client/model/ModelApiResponseTest.java
29+
src/test/java/org/openapitools/client/model/OrderTest.java
30+
src/test/java/org/openapitools/client/model/PetTest.java
31+
src/test/java/org/openapitools/client/model/TagTest.java
32+
src/test/java/org/openapitools/client/model/UserTest.java
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
7.10.0-SNAPSHOT
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# OpenAPI Petstore - MicroProfile Rest Client & MicroProfile Server
2+
3+
This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters.
4+
5+
## Overview
6+
This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project.
7+
[MicroProfile Rest Client](https://github.com/eclipse/microprofile-rest-client) is a type-safe way of calling
8+
REST services. The generated client contains an interface which acts as the client, you can inject it into dependent classes.
9+
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
2+
3+
# Category
4+
5+
A category for a pet
6+
7+
## Properties
8+
9+
| Name | Type | Description | Notes |
10+
|------------ | ------------- | ------------- | -------------|
11+
|**id** | **Long** | | [optional] |
12+
|**name** | **String** | | [optional] |
13+
14+
15+

0 commit comments

Comments
 (0)