|
6 | 6 |
|
7 | 7 | <groupId>io.github.bsayli</groupId> |
8 | 8 | <artifactId>customer-service-client</artifactId> |
9 | | - <version>0.7.0</version> |
| 9 | + <version>0.7.2</version> |
10 | 10 | <name>customer-service-client</name> |
11 | 11 | <description>Generated client (RestClient) using generics-aware OpenAPI templates</description> |
12 | 12 | <packaging>jar</packaging> |
|
20 | 20 | <openapi.generator.version>7.16.0</openapi.generator.version> |
21 | 21 |
|
22 | 22 | <jakarta.validation.version>3.1.1</jakarta.validation.version> |
23 | | - <jakarta.annotation-api.version>3.0.0</jakarta.annotation-api.version> |
| 23 | + <jakarta.annotation-api.version>${spotless-maven-plugin.version}</jakarta.annotation-api.version> |
24 | 24 | <mockwebserver.version>5.1.0</mockwebserver.version> |
25 | 25 | <httpclient5.version>5.5</httpclient5.version> |
26 | 26 | <junit-jupiter.version>5.13.4</junit-jupiter.version> |
|
32 | 32 | <build.helper.plugin.version>3.6.0</build.helper.plugin.version> |
33 | 33 | <maven.resources.plugin.version>3.3.1</maven.resources.plugin.version> |
34 | 34 | <maven.dependency.plugin.version>3.8.1</maven.dependency.plugin.version> |
| 35 | + <spotless-maven-plugin.version>3.0.0</spotless-maven-plugin.version> |
35 | 36 |
|
36 | 37 | <openapi.templates.upstream>${project.build.directory}/upstream-templates</openapi.templates.upstream> |
37 | 38 | <openapi.templates.effective>${project.build.directory}/effective-templates</openapi.templates.effective> |
| 39 | + |
38 | 40 | </properties> |
39 | 41 |
|
40 | 42 | <dependencies> |
|
217 | 219 | <additionalProperty>commonPackage=io.github.bsayli.openapi.client.common |
218 | 220 | </additionalProperty> |
219 | 221 | </additionalProperties> |
| 222 | + <ignoreFileOverride>${project.basedir}/.openapi-generator-ignore</ignoreFileOverride> |
220 | 223 | </configuration> |
221 | 224 | </execution> |
222 | 225 | </executions> |
|
241 | 244 | </execution> |
242 | 245 | </executions> |
243 | 246 | </plugin> |
| 247 | + <plugin> |
| 248 | + <groupId>com.diffplug.spotless</groupId> |
| 249 | + <artifactId>spotless-maven-plugin</artifactId> |
| 250 | + <version>${spotless-maven-plugin.version}</version> |
244 | 251 |
|
| 252 | + <configuration> |
| 253 | + <java> |
| 254 | + <includes> |
| 255 | + <include>target/generated-sources/openapi/src/gen/java/**/*.java</include> |
| 256 | + </includes> |
| 257 | + <removeUnusedImports> |
| 258 | + <engine>cleanthat-javaparser-unnecessaryimport</engine> |
| 259 | + </removeUnusedImports> |
| 260 | + </java> |
| 261 | + </configuration> |
| 262 | + <executions> |
| 263 | + <execution> |
| 264 | + <id>spotless-apply-generated</id> |
| 265 | + <phase>process-sources</phase> |
| 266 | + <goals> |
| 267 | + <goal>apply</goal> |
| 268 | + </goals> |
| 269 | + </execution> |
| 270 | + </executions> |
| 271 | + </plugin> |
245 | 272 | <plugin> |
246 | 273 | <groupId>org.apache.maven.plugins</groupId> |
247 | 274 | <artifactId>maven-compiler-plugin</artifactId> |
|
0 commit comments