forked from kokuwaio/micronaut-openapi-codegen
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpom.xml
236 lines (215 loc) · 8.04 KB
/
pom.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
<?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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>@project.groupId@</groupId>
<artifactId>@project.artifactId@-it</artifactId>
<version>LOCAL-SNAPSHOT</version>
<packaging>pom</packaging>
<properties>
<!-- ===================================================================== -->
<!-- ============================== Build ================================ -->
<!-- ===================================================================== -->
<project.build.sourceEncoding>@project.build.sourceEncoding@</project.build.sourceEncoding>
<project.build.propertiesEncoding>@project.build.propertiesEncoding@</project.build.propertiesEncoding>
<maven.compiler.source>@maven.compiler.source@</maven.compiler.source>
<maven.compiler.target>@maven.compiler.target@</maven.compiler.target>
<maven.compiler.parameters>true</maven.compiler.parameters>
<maven.compiler.showDeprecation>@maven.compiler.showDeprecation@</maven.compiler.showDeprecation>
<maven.compiler.showWarnings>@maven.compiler.showWarnings@</maven.compiler.showWarnings>
<maven.compiler.failOnWarning>false</maven.compiler.failOnWarning>
<!-- ===================================================================== -->
<!-- ============================= Libaries ============================== -->
<!-- ===================================================================== -->
<!-- dependencies -->
<version.io.micronaut.platform>@version.io.micronaut.platform@</version.io.micronaut.platform>
<version.io.micronaut.serde>2.8.1</version.io.micronaut.serde>
<version.io.micronaut.validation>4.4.0</version.io.micronaut.validation>
<version.org.openapitools.generator>@version.org.openapitools.generator@</version.org.openapitools.generator>
<version.org.openapitools.jackson.nullable>@version.org.openapitools.jackson.nullable@</version.org.openapitools.jackson.nullable>
<!-- plugins -->
<version.org.apache.maven.plugins.compiler>@version.org.apache.maven.plugins.compiler@</version.org.apache.maven.plugins.compiler>
<version.org.apache.maven.plugins.resources>@version.org.apache.maven.plugins.resources@</version.org.apache.maven.plugins.resources>
<version.org.apache.maven.plugins.surefire>@version.org.apache.maven.plugins.surefire@</version.org.apache.maven.plugins.surefire>
<version.org.codehaus.mojo.build-helper>@version.org.codehaus.mojo.build-helper@</version.org.codehaus.mojo.build-helper>
<version.org.codehaus.mojo.tidy>@version.org.codehaus.mojo.tidy@</version.org.codehaus.mojo.tidy>
</properties>
<dependencyManagement>
<dependencies>
<!-- micronaut -->
<dependency>
<groupId>io.micronaut.serde</groupId>
<artifactId>micronaut-serde-bom</artifactId>
<version>${version.io.micronaut.serde}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<dependency>
<groupId>io.micronaut.validation</groupId>
<artifactId>micronaut-validation-bom</artifactId>
<version>${version.io.micronaut.validation}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<dependency>
<groupId>io.micronaut.platform</groupId>
<artifactId>micronaut-platform</artifactId>
<version>${version.io.micronaut.platform}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<dependency>
<groupId>org.openapitools</groupId>
<artifactId>jackson-databind-nullable</artifactId>
<version>${version.org.openapitools.jackson.nullable}</version>
</dependency>
</dependencies>
</dependencyManagement>
<dependencies>
<!-- test -->
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-simple</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.yaml</groupId>
<artifactId>snakeyaml</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>${version.org.apache.maven.plugins.compiler}</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<version>${version.org.apache.maven.plugins.resources}</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>${version.org.apache.maven.plugins.surefire}</version>
<configuration>
<redirectTestOutputToFile>true</redirectTestOutputToFile>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<version>${version.org.codehaus.mojo.build-helper}</version>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>tidy-maven-plugin</artifactId>
<version>${version.org.codehaus.mojo.tidy}</version>
</plugin>
<plugin>
<groupId>org.openapitools</groupId>
<artifactId>openapi-generator-maven-plugin</artifactId>
<version>${version.org.openapitools.generator}</version>
</plugin>
</plugins>
</pluginManagement>
<plugins>
<!-- add generated sources -->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<executions>
<execution>
<id>openapi-source</id>
<phase>generate-sources</phase>
<goals>
<goal>add-source</goal>
</goals>
<configuration>
<sources>
<source>${project.build.directory}/generated-sources/openapi</source>
</sources>
</configuration>
</execution>
<execution>
<id>openapi-test-source</id>
<phase>generate-test-sources</phase>
<goals>
<goal>add-test-source</goal>
</goals>
<configuration>
<sources>
<source>${project.build.directory}/generated-test-sources/openapi</source>
</sources>
</configuration>
</execution>
</executions>
</plugin>
<!-- generate sources from openapi spec -->
<plugin>
<groupId>org.openapitools</groupId>
<artifactId>openapi-generator-maven-plugin</artifactId>
<executions>
<execution>
<id>openapi-generate-server</id>
<goals>
<goal>generate</goal>
</goals>
<configuration>
<apiPackage>codegen.server</apiPackage>
</configuration>
</execution>
<execution>
<id>openapi-generate-client</id>
<goals>
<goal>generate</goal>
</goals>
<configuration>
<apiPackage>codegen.client</apiPackage>
<generateModels>false</generateModels>
<generateSupportingFiles>false</generateSupportingFiles>
<configOptions>
<clientId>test-client</clientId>
<generateExamples>true</generateExamples>
</configOptions>
</configuration>
</execution>
</executions>
<configuration>
<generatorName>micronaut</generatorName>
<skipValidateSpec>false</skipValidateSpec>
<strictSpec>true</strictSpec>
<enablePostProcessFile>false</enablePostProcessFile>
<output>${project.build.directory}</output>
<ignoreFileOverride>${project.basedir}/../.openapi-generator</ignoreFileOverride>
<packageName>codegen</packageName>
<configOptions>
<generateConstants>true</generateConstants>
</configOptions>
</configuration>
<dependencies>
<dependency>
<groupId>@project.groupId@</groupId>
<artifactId>@project.artifactId@</artifactId>
<version>@project.version@</version>
</dependency>
</dependencies>
</plugin>
<!-- fail if any pom is dirty -->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>tidy-maven-plugin</artifactId>
<executions>
<execution>
<phase>test</phase>
<goals>
<goal>check</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>