@team-supercharge/oasg 18.2.2 → 18.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/oasg +5 -6
- package/package.json +1 -1
- package/targets/dotnet-webapi-system-text-json/README.md +5 -5
- package/targets/dotnet-webapi-system-text-json/templates/minimalEndpoints.mustache +1 -1
- package/targets/feign/.mvn/wrapper/maven-wrapper.jar +0 -0
- package/targets/feign/.mvn/wrapper/maven-wrapper.properties +4 -2
- package/targets/feign/generate.sh +14 -1
- package/targets/feign/generator-config.json +2 -9
- package/targets/feign/mvnw +196 -168
- package/targets/feign-kotlin/.mvn/wrapper/maven-wrapper.jar +0 -0
- package/targets/feign-kotlin/.mvn/wrapper/maven-wrapper.properties +4 -2
- package/targets/feign-kotlin/generate.sh +15 -1
- package/targets/feign-kotlin/generator-config.json +2 -7
- package/targets/feign-kotlin/mvnw +196 -168
- package/targets/feign-kotlin/templates/libraries/spring-cloud/pom-sb3.mustache +248 -0
- package/targets/plain-java/.mvn/wrapper/maven-wrapper.jar +0 -0
- package/targets/plain-java/.mvn/wrapper/maven-wrapper.properties +4 -2
- package/targets/plain-java/generate.sh +13 -1
- package/targets/plain-java/generator-config.json +3 -5
- package/targets/plain-java/mvnw +196 -168
- package/targets/spring/.mvn/wrapper/maven-wrapper.jar +0 -0
- package/targets/spring/.mvn/wrapper/maven-wrapper.properties +4 -2
- package/targets/spring/generate.sh +13 -1
- package/targets/spring/generator-config.json +2 -7
- package/targets/spring/mvnw +196 -168
- package/targets/spring-kotlin/.mvn/wrapper/maven-wrapper.jar +0 -0
- package/targets/spring-kotlin/.mvn/wrapper/maven-wrapper.properties +4 -2
- package/targets/spring-kotlin/generate.sh +13 -1
- package/targets/spring-kotlin/generator-config.json +2 -5
- package/targets/spring-kotlin/mvnw +196 -168
- package/targets/feign/.mvn/wrapper/MavenWrapperDownloader.java +0 -117
- package/targets/feign/templates/beanValidation.mustache +0 -2
- package/targets/feign/templates/formParams.mustache +0 -3
- package/targets/feign-kotlin/.mvn/wrapper/MavenWrapperDownloader.java +0 -117
- package/targets/plain-java/.mvn/wrapper/MavenWrapperDownloader.java +0 -117
- package/targets/spring/.mvn/wrapper/MavenWrapperDownloader.java +0 -117
- package/targets/spring-kotlin/.mvn/wrapper/MavenWrapperDownloader.java +0 -117
|
@@ -0,0 +1,248 @@
|
|
|
1
|
+
{{! ! FIX: incompatible kotlin version - compilation fails with "The binary version of its metadata is 1.9.0, expected version is 1.7.1." - 1.7 from this POM is overriden by spring-boot-parent, and 1.8 had breaking changes }}
|
|
2
|
+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
3
|
+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
|
|
4
|
+
<modelVersion>4.0.0</modelVersion>
|
|
5
|
+
<groupId>{{groupId}}</groupId>
|
|
6
|
+
<artifactId>{{artifactId}}</artifactId>
|
|
7
|
+
<packaging>jar</packaging>
|
|
8
|
+
<name>{{artifactId}}</name>
|
|
9
|
+
<version>{{artifactVersion}}</version>
|
|
10
|
+
<properties>{{#reactive}}
|
|
11
|
+
<kotlinx-coroutines.version>1.6.1
|
|
12
|
+
</kotlinx-coroutines.version>{{/reactive}}{{#springDocDocumentationProvider}}{{#useSwaggerUI}}
|
|
13
|
+
<springdoc-openapi.version>2.2.0
|
|
14
|
+
</springdoc-openapi.version>{{/useSwaggerUI}}{{/springDocDocumentationProvider}}{{#useSwaggerUI}}{{^springDocDocumentationProvider}}
|
|
15
|
+
<swagger-ui.version>5.3.1
|
|
16
|
+
</swagger-ui.version>{{/springDocDocumentationProvider}}{{/useSwaggerUI}}{{^springDocDocumentationProvider}}{{#swagger1AnnotationLibrary}}
|
|
17
|
+
<swagger-annotations.version>1.6.6
|
|
18
|
+
</swagger-annotations.version>{{/swagger1AnnotationLibrary}}{{#swagger2AnnotationLibrary}}
|
|
19
|
+
<swagger-annotations.version>2.2.15
|
|
20
|
+
</swagger-annotations.version>{{/swagger2AnnotationLibrary}}{{/springDocDocumentationProvider}}
|
|
21
|
+
<findbugs-jsr305.version>3.0.2</findbugs-jsr305.version>
|
|
22
|
+
<jakarta-annotation.version>2.1.0</jakarta-annotation.version>
|
|
23
|
+
<kotlin-test-junit5.version>1.7.10</kotlin-test-junit5.version>
|
|
24
|
+
|
|
25
|
+
{{! FIX: incompatible kotlin version }}
|
|
26
|
+
<kotlin.version>1.9.25</kotlin.version>
|
|
27
|
+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
|
28
|
+
</properties>
|
|
29
|
+
<parent>
|
|
30
|
+
<groupId>org.springframework.boot</groupId>
|
|
31
|
+
<artifactId>spring-boot-starter-parent</artifactId>
|
|
32
|
+
<version>3.3.13</version>
|
|
33
|
+
</parent>
|
|
34
|
+
<dependencyManagement>
|
|
35
|
+
<dependencies>
|
|
36
|
+
<dependency>
|
|
37
|
+
<groupId>org.springframework.cloud</groupId>
|
|
38
|
+
<artifactId>spring-cloud-starter-parent</artifactId>
|
|
39
|
+
<version>2023.0.6</version>
|
|
40
|
+
<type>pom</type>
|
|
41
|
+
<scope>import</scope>
|
|
42
|
+
</dependency>
|
|
43
|
+
</dependencies>
|
|
44
|
+
</dependencyManagement>
|
|
45
|
+
<repositories>
|
|
46
|
+
<repository>
|
|
47
|
+
<id>repository.spring.milestone</id>
|
|
48
|
+
<name>Spring Milestone Repository</name>
|
|
49
|
+
<url>https://repo.spring.io/milestone</url>
|
|
50
|
+
</repository>
|
|
51
|
+
</repositories>
|
|
52
|
+
<pluginRepositories>
|
|
53
|
+
<pluginRepository>
|
|
54
|
+
<id>spring-milestones</id>
|
|
55
|
+
<url>https://repo.spring.io/milestone</url>
|
|
56
|
+
</pluginRepository>
|
|
57
|
+
</pluginRepositories>
|
|
58
|
+
<build>
|
|
59
|
+
<sourceDirectory>${project.basedir}/src/main/kotlin</sourceDirectory>
|
|
60
|
+
<plugins>{{^interfaceOnly}}
|
|
61
|
+
<plugin>
|
|
62
|
+
<groupId>org.springframework.boot</groupId>
|
|
63
|
+
<artifactId>spring-boot-maven-plugin</artifactId>
|
|
64
|
+
<executions>
|
|
65
|
+
<execution>
|
|
66
|
+
<goals>
|
|
67
|
+
<goal>repackage</goal>
|
|
68
|
+
</goals>
|
|
69
|
+
</execution>
|
|
70
|
+
</executions>
|
|
71
|
+
</plugin>{{/interfaceOnly}}
|
|
72
|
+
{{#interfaceOnly}}<plugin>
|
|
73
|
+
<groupId>org.apache.maven.plugins</groupId>
|
|
74
|
+
<artifactId>maven-source-plugin</artifactId>
|
|
75
|
+
<executions>
|
|
76
|
+
<execution>
|
|
77
|
+
<id>attach-sources</id>
|
|
78
|
+
<goals>
|
|
79
|
+
<goal>jar</goal>
|
|
80
|
+
</goals>
|
|
81
|
+
</execution>
|
|
82
|
+
</executions>
|
|
83
|
+
</plugin>{{/interfaceOnly}}
|
|
84
|
+
<plugin>
|
|
85
|
+
<artifactId>kotlin-maven-plugin</artifactId>
|
|
86
|
+
<groupId>org.jetbrains.kotlin</groupId>
|
|
87
|
+
<version>${kotlin.version}</version>
|
|
88
|
+
<configuration>
|
|
89
|
+
<compilerPlugins>
|
|
90
|
+
<plugin>spring</plugin>
|
|
91
|
+
</compilerPlugins>
|
|
92
|
+
<jvmTarget>17</jvmTarget>
|
|
93
|
+
</configuration>
|
|
94
|
+
<executions>
|
|
95
|
+
<execution>
|
|
96
|
+
<id>compile</id>
|
|
97
|
+
<phase>compile</phase>
|
|
98
|
+
<goals>
|
|
99
|
+
<goal>compile</goal>
|
|
100
|
+
</goals>
|
|
101
|
+
</execution>
|
|
102
|
+
<execution>
|
|
103
|
+
<id>test-compile</id>
|
|
104
|
+
<phase>test-compile</phase>
|
|
105
|
+
<goals>
|
|
106
|
+
<goal>test-compile</goal>
|
|
107
|
+
</goals>
|
|
108
|
+
</execution>
|
|
109
|
+
</executions>
|
|
110
|
+
<dependencies>
|
|
111
|
+
<dependency>
|
|
112
|
+
<groupId>org.jetbrains.kotlin</groupId>
|
|
113
|
+
<artifactId>kotlin-maven-allopen</artifactId>
|
|
114
|
+
<version>${kotlin.version}</version>
|
|
115
|
+
</dependency>
|
|
116
|
+
</dependencies>
|
|
117
|
+
</plugin>
|
|
118
|
+
</plugins>
|
|
119
|
+
</build>
|
|
120
|
+
<dependencies>
|
|
121
|
+
<dependency>
|
|
122
|
+
<groupId>org.jetbrains.kotlin</groupId>
|
|
123
|
+
{{! FIX: incompatible kotlin version }}
|
|
124
|
+
<artifactId>kotlin-stdlib</artifactId>
|
|
125
|
+
<version>${kotlin.version}</version>
|
|
126
|
+
</dependency>
|
|
127
|
+
<dependency>
|
|
128
|
+
<groupId>org.jetbrains.kotlin</groupId>
|
|
129
|
+
<artifactId>kotlin-reflect</artifactId>
|
|
130
|
+
<version>${kotlin.version}</version>
|
|
131
|
+
</dependency>{{^reactive}}
|
|
132
|
+
<dependency>
|
|
133
|
+
<groupId>org.springframework.boot</groupId>
|
|
134
|
+
<artifactId>spring-boot-starter-web</artifactId>
|
|
135
|
+
</dependency>{{/reactive}}{{#reactive}}
|
|
136
|
+
<dependency>
|
|
137
|
+
<groupId>org.springframework.boot</groupId>
|
|
138
|
+
<artifactId>spring-boot-starter-webflux</artifactId>
|
|
139
|
+
</dependency>
|
|
140
|
+
<dependency>
|
|
141
|
+
<groupId>org.jetbrains.kotlinx</groupId>
|
|
142
|
+
<artifactId>kotlinx-coroutines-core</artifactId>
|
|
143
|
+
<version>${kotlinx-coroutines.version}</version>
|
|
144
|
+
</dependency>
|
|
145
|
+
<dependency>
|
|
146
|
+
<groupId>org.jetbrains.kotlinx</groupId>
|
|
147
|
+
<artifactId>kotlinx-coroutines-reactor</artifactId>
|
|
148
|
+
<version>${kotlinx-coroutines.version}</version>
|
|
149
|
+
</dependency>{{/reactive}}
|
|
150
|
+
|
|
151
|
+
{{#springDocDocumentationProvider}}
|
|
152
|
+
<!--SpringDoc dependencies -->{{#useSwaggerUI}}
|
|
153
|
+
<dependency>
|
|
154
|
+
<groupId>org.springdoc</groupId>
|
|
155
|
+
<artifactId>springdoc-openapi-starter-{{#reactive}}
|
|
156
|
+
webflux{{/reactive}}{{^reactive}}webmvc{{/reactive}}-ui
|
|
157
|
+
</artifactId>
|
|
158
|
+
<version>${springdoc-openapi.version}</version>
|
|
159
|
+
</dependency>{{/useSwaggerUI}}{{^useSwaggerUI}}
|
|
160
|
+
<dependency>
|
|
161
|
+
<groupId>org.springdoc</groupId>
|
|
162
|
+
<artifactId>springdoc-openapi-{{#reactive}}webflux{{/reactive}}{{^reactive}}webmvc{{/reactive}}-core
|
|
163
|
+
</artifactId>
|
|
164
|
+
<version>${springdoc-openapi.version}</version>
|
|
165
|
+
</dependency>{{/useSwaggerUI}}{{/springDocDocumentationProvider}}{{#useSwaggerUI}}{{^springDocDocumentationProvider}}
|
|
166
|
+
<dependency>
|
|
167
|
+
<groupId>org.webjars</groupId>
|
|
168
|
+
<artifactId>swagger-ui</artifactId>
|
|
169
|
+
<version>${swagger-ui.version}</version>
|
|
170
|
+
</dependency>
|
|
171
|
+
<dependency>
|
|
172
|
+
<groupId>org.webjars</groupId>
|
|
173
|
+
<artifactId>webjars-locator-core</artifactId>
|
|
174
|
+
</dependency>{{/springDocDocumentationProvider}}{{/useSwaggerUI}}{{^springDocDocumentationProvider}}{{#swagger1AnnotationLibrary}}
|
|
175
|
+
<dependency>
|
|
176
|
+
<groupId>io.swagger</groupId>
|
|
177
|
+
<artifactId>swagger-annotations</artifactId>
|
|
178
|
+
<version>${swagger-annotations.version}</version>
|
|
179
|
+
</dependency>{{/swagger1AnnotationLibrary}}{{#swagger2AnnotationLibrary}}
|
|
180
|
+
<dependency>
|
|
181
|
+
<groupId>io.swagger.core.v3</groupId>
|
|
182
|
+
<artifactId>swagger-annotations</artifactId>
|
|
183
|
+
<version>${swagger-annotations.version}</version>
|
|
184
|
+
</dependency>{{/swagger2AnnotationLibrary}}{{/springDocDocumentationProvider}}
|
|
185
|
+
|
|
186
|
+
<!-- @Nullable annotation -->
|
|
187
|
+
<dependency>
|
|
188
|
+
<groupId>com.google.code.findbugs</groupId>
|
|
189
|
+
<artifactId>jsr305</artifactId>
|
|
190
|
+
<version>${findbugs-jsr305.version}</version>
|
|
191
|
+
</dependency>
|
|
192
|
+
<dependency>
|
|
193
|
+
<groupId>org.springframework.cloud</groupId>
|
|
194
|
+
<artifactId>spring-cloud-starter-openfeign</artifactId>
|
|
195
|
+
</dependency>
|
|
196
|
+
{{#hasAuthMethods}}
|
|
197
|
+
<dependency>
|
|
198
|
+
<groupId>org.springframework.boot</groupId>
|
|
199
|
+
<artifactId>spring-boot-starter-oauth2-client</artifactId>
|
|
200
|
+
</dependency>
|
|
201
|
+
{{/hasAuthMethods}}
|
|
202
|
+
<dependency>
|
|
203
|
+
<groupId>com.fasterxml.jackson.dataformat</groupId>
|
|
204
|
+
<artifactId>jackson-dataformat-yaml</artifactId>
|
|
205
|
+
</dependency>
|
|
206
|
+
<dependency>
|
|
207
|
+
<groupId>com.fasterxml.jackson.dataformat</groupId>
|
|
208
|
+
<artifactId>jackson-dataformat-xml</artifactId>
|
|
209
|
+
</dependency>
|
|
210
|
+
<dependency>
|
|
211
|
+
<groupId>com.fasterxml.jackson.datatype</groupId>
|
|
212
|
+
<artifactId>jackson-datatype-jsr310</artifactId>
|
|
213
|
+
</dependency>
|
|
214
|
+
<dependency>
|
|
215
|
+
<groupId>com.fasterxml.jackson.module</groupId>
|
|
216
|
+
<artifactId>jackson-module-kotlin</artifactId>
|
|
217
|
+
</dependency>
|
|
218
|
+
{{#useBeanValidation}}
|
|
219
|
+
<!-- Bean Validation API support -->
|
|
220
|
+
<dependency>
|
|
221
|
+
<groupId>jakarta.validation</groupId>
|
|
222
|
+
<artifactId>jakarta.validation-api</artifactId>
|
|
223
|
+
</dependency>{{/useBeanValidation}}
|
|
224
|
+
{{#openApiNullable}}
|
|
225
|
+
<dependency>
|
|
226
|
+
<groupId>org.openapitools</groupId>
|
|
227
|
+
<artifactId>jackson-databind-nullable</artifactId>
|
|
228
|
+
<version>0.2.10</version>
|
|
229
|
+
</dependency>{{/openApiNullable}}
|
|
230
|
+
<dependency>
|
|
231
|
+
<groupId>jakarta.annotation</groupId>
|
|
232
|
+
<artifactId>jakarta.annotation-api</artifactId>
|
|
233
|
+
<version>${jakarta-annotation.version}</version>
|
|
234
|
+
<scope>provided</scope>
|
|
235
|
+
</dependency>
|
|
236
|
+
<dependency>
|
|
237
|
+
<groupId>org.jetbrains.kotlin</groupId>
|
|
238
|
+
<artifactId>kotlin-test-junit5</artifactId>
|
|
239
|
+
<version>${kotlin-test-junit5.version}</version>
|
|
240
|
+
<scope>test</scope>
|
|
241
|
+
</dependency>
|
|
242
|
+
<dependency>
|
|
243
|
+
<groupId>org.springframework.boot</groupId>
|
|
244
|
+
<artifactId>spring-boot-starter-test</artifactId>
|
|
245
|
+
<scope>test</scope>
|
|
246
|
+
</dependency>
|
|
247
|
+
</dependencies>
|
|
248
|
+
</project>
|
|
Binary file
|
|
@@ -1,2 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
wrapperVersion=3.3.4
|
|
2
|
+
distributionType=bin
|
|
3
|
+
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.16/apache-maven-3.9.16-bin.zip
|
|
4
|
+
wrapperUrl=https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.3.4/maven-wrapper-3.3.4.jar
|
|
@@ -5,13 +5,25 @@ source $(dirname "$0")/../common.sh
|
|
|
5
5
|
rm -rf out/$targetId
|
|
6
6
|
mkdir -p out/$targetId
|
|
7
7
|
|
|
8
|
+
properties=(
|
|
9
|
+
"artifactId=${artifactId}"
|
|
10
|
+
"groupId=${groupId}"
|
|
11
|
+
"artifactVersion=${version}"
|
|
12
|
+
"basePackage=${basePackage}"
|
|
13
|
+
"apiPackage=${basePackage}.api"
|
|
14
|
+
"modelPackage=${basePackage}.model"
|
|
15
|
+
)
|
|
16
|
+
|
|
17
|
+
props=$(IFS=,; echo "${properties[*]}")
|
|
18
|
+
|
|
8
19
|
java -jar $binary generate \
|
|
9
20
|
-g $generatorId \
|
|
10
21
|
-i $openApiFile \
|
|
11
22
|
-t $templateDir \
|
|
12
23
|
-o out/$targetId \
|
|
13
24
|
-c $(dirname "$0")/generator-config.json \
|
|
14
|
-
-p "
|
|
25
|
+
-p "$props" \
|
|
26
|
+
$generatorCustomArgs
|
|
15
27
|
|
|
16
28
|
cd out/$targetId
|
|
17
29
|
cp $(dirname "$0")/mvnw .
|
|
@@ -2,16 +2,14 @@
|
|
|
2
2
|
"library": "native",
|
|
3
3
|
"hideGenerationTimestamp": true,
|
|
4
4
|
"openApiNullable": false,
|
|
5
|
-
"useRuntimeException": true,
|
|
6
5
|
"annotationLibrary": "none",
|
|
7
6
|
"documentationProvider": "none",
|
|
7
|
+
"useJakartaEe": true,
|
|
8
8
|
"typeMappings": {
|
|
9
|
-
"
|
|
10
|
-
"OffsetDateTime": "java.time.Instant"
|
|
9
|
+
"OffsetDateTime": "Instant"
|
|
11
10
|
},
|
|
12
11
|
"importMappings": {
|
|
13
|
-
"
|
|
14
|
-
"java.time.OffsetDateTime": "java.time.Instant"
|
|
12
|
+
"OffsetDateTime": "java.time.Instant"
|
|
15
13
|
},
|
|
16
14
|
"inlineSchemaOptions": {
|
|
17
15
|
"ARRAY_ITEM_SUFFIX": "",
|