|
5 | 5 | <modelVersion>4.0.0</modelVersion> |
6 | 6 |
|
7 | 7 | <groupId>software.xdev</groupId> |
8 | | - <artifactId>template-placeholder</artifactId> |
9 | | - <version>1.0.0-SNAPSHOT</version> |
| 8 | + <artifactId>bzst-dip-java-client</artifactId> |
| 9 | + <version>2.0.3-SNAPSHOT</version> |
10 | 10 | <packaging>jar</packaging> |
11 | 11 |
|
12 | | - <name>template-placeholder</name> |
13 | | - <description>template-placeholder</description> |
14 | | - <url>https://github.com/xdev-software/template-placeholder</url> |
| 12 | + <name>bzst-dip-java-client</name> |
| 13 | + <description>bzst-dip-java-client</description> |
| 14 | + <url>https://github.com/xdev-software/bzst-dip-java-client</url> |
15 | 15 |
|
16 | 16 | <scm> |
17 | | - <url>https://github.com/xdev-software/template-placeholder</url> |
18 | | - <connection>scm:git:https://github.com/xdev-software/template-placeholder.git</connection> |
| 17 | + <url>https://github.com/xdev-software/bzst-dip-java-client</url> |
| 18 | + <connection>scm:git:https://github.com/xdev-software/bzst-dip-java-client.git</connection> |
19 | 19 | </scm> |
20 | 20 |
|
21 | | - <inceptionYear>2023</inceptionYear> |
| 21 | + <inceptionYear>2024</inceptionYear> |
22 | 22 |
|
23 | 23 | <organization> |
24 | 24 | <name>XDEV Software</name> |
|
54 | 54 | <sonar.exclusions> |
55 | 55 | src/generated/** |
56 | 56 | </sonar.exclusions> |
| 57 | + |
| 58 | + <jjwt.version>0.12.6</jjwt.version> |
57 | 59 | </properties> |
58 | 60 |
|
59 | 61 | <dependencyManagement> |
|
104 | 106 | <artifactId>jakarta.annotation-api</artifactId> |
105 | 107 | <version>3.0.0</version> |
106 | 108 | </dependency> |
| 109 | + |
| 110 | + <!-- Custom project stuff --> |
| 111 | + <dependency> |
| 112 | + <groupId>commons-io</groupId> |
| 113 | + <artifactId>commons-io</artifactId> |
| 114 | + <version>2.19.0</version> |
| 115 | + </dependency> |
| 116 | + <dependency> |
| 117 | + <groupId>jakarta.xml.bind</groupId> |
| 118 | + <artifactId>jakarta.xml.bind-api</artifactId> |
| 119 | + <version>4.0.2</version> |
| 120 | + </dependency> |
| 121 | + <dependency> |
| 122 | + <groupId>com.sun.xml.bind</groupId> |
| 123 | + <artifactId>jaxb-impl</artifactId> |
| 124 | + <version>4.0.5</version> |
| 125 | + </dependency> |
| 126 | + <dependency> |
| 127 | + <groupId>io.jsonwebtoken</groupId> |
| 128 | + <artifactId>jjwt-api</artifactId> |
| 129 | + <version>${jjwt.version}</version> |
| 130 | + </dependency> |
| 131 | + <dependency> |
| 132 | + <groupId>io.jsonwebtoken</groupId> |
| 133 | + <artifactId>jjwt-impl</artifactId> |
| 134 | + <version>${jjwt.version}</version> |
| 135 | + <scope>runtime</scope> |
| 136 | + </dependency> |
| 137 | + <dependency> |
| 138 | + <groupId>io.jsonwebtoken</groupId> |
| 139 | + <artifactId>jjwt-jackson</artifactId> |
| 140 | + <version>${jjwt.version}</version> |
| 141 | + <scope>runtime</scope> |
| 142 | + </dependency> |
| 143 | + |
| 144 | + <dependency> |
| 145 | + <groupId>org.slf4j</groupId> |
| 146 | + <artifactId>slf4j-api</artifactId> |
| 147 | + <version>2.0.17</version> |
| 148 | + </dependency> |
| 149 | + <dependency> |
| 150 | + <groupId>com.opencsv</groupId> |
| 151 | + <artifactId>opencsv</artifactId> |
| 152 | + <version>5.11</version> |
| 153 | + </dependency> |
| 154 | + |
| 155 | + <dependency> |
| 156 | + <groupId>org.junit.jupiter</groupId> |
| 157 | + <artifactId>junit-jupiter</artifactId> |
| 158 | + <version>5.13.3</version> |
| 159 | + <scope>test</scope> |
| 160 | + </dependency> |
| 161 | + <dependency> |
| 162 | + <groupId>org.apache.logging.log4j</groupId> |
| 163 | + <artifactId>log4j-slf4j2-impl</artifactId> |
| 164 | + <version>2.24.3</version> |
| 165 | + <scope>test</scope> |
| 166 | + </dependency> |
107 | 167 | </dependencies> |
108 | 168 |
|
109 | 169 | <build> |
|
282 | 342 | <profile> |
283 | 343 | <id>openapi-generator</id> |
284 | 344 | <properties> |
285 | | - <componentName>INSERT_NAME_HERE</componentName> |
| 345 | + <componentDir>bzst/dip/client/generated</componentDir> |
| 346 | + <componentPackage>bzst.dip.client.generated</componentPackage> |
286 | 347 |
|
287 | 348 | <generatedDir>${project.basedir}/${generatedDirRelative}</generatedDir> |
288 | 349 | <openApiRelativeGeneratorDir>src/gen</openApiRelativeGeneratorDir> |
|
336 | 397 | <configOptions> |
337 | 398 | <sourceFolder>${openApiRelativeGeneratorDir}</sourceFolder> |
338 | 399 | <library>apache-httpclient</library> |
339 | | - <apiPackage>software.xdev.${componentName}.api</apiPackage> |
340 | | - <modelPackage>software.xdev.${componentName}.model</modelPackage> |
341 | | - <invokerPackage>software.xdev.${componentName}.client</invokerPackage> |
| 400 | + <apiPackage>software.xdev.${componentPackage}.api</apiPackage> |
| 401 | + <modelPackage>software.xdev.${componentPackage}.model</modelPackage> |
| 402 | + <invokerPackage>software.xdev.${componentPackage}.client</invokerPackage> |
342 | 403 | <!-- Otherwise throw and catch everywhere --> |
343 | 404 | <useRuntimeException>true</useRuntimeException> |
344 | 405 | <!-- Some fields of API have been ignored because they are unused --> |
|
392 | 453 | <goal>file-contents</goal> |
393 | 454 | </goals> |
394 | 455 | <configuration> |
395 | | - <baseDir>${generatedDirRelative}/software/xdev/${componentName}/client/</baseDir> |
| 456 | + <baseDir>${generatedDirRelative}/software/xdev/${componentDir}/client/</baseDir> |
396 | 457 | <fileMask>ApiClient.java</fileMask> |
397 | 458 | <!-- @formatter:off DO NOT INTRODUCE LINE BREAK --> |
398 | 459 | <findRegex>^import com\.fasterxml\.jackson\.jaxrs\.json\.JacksonJsonProvider;(\r?\n)</findRegex> |
|
408 | 469 | <goal>file-contents</goal> |
409 | 470 | </goals> |
410 | 471 | <configuration> |
411 | | - <baseDir>${generatedDirRelative}/software/xdev/${componentName}/</baseDir> |
| 472 | + <baseDir>${generatedDirRelative}/software/xdev/${componentDir}/</baseDir> |
412 | 473 | <recursive>true</recursive> |
413 | 474 | <fileMask>.java</fileMask> |
414 | 475 | <findRegex>^@jakarta\.annotation\.Generated.*(\r?\n)</findRegex> |
|
424 | 485 | <goal>file-contents</goal> |
425 | 486 | </goals> |
426 | 487 | <configuration> |
427 | | - <baseDir>${generatedDirRelative}/software/xdev/${componentName}/</baseDir> |
| 488 | + <baseDir>${generatedDirRelative}/software/xdev/${componentDir}/</baseDir> |
428 | 489 | <recursive>true</recursive> |
429 | 490 | <fileMask>.java</fileMask> |
430 | 491 | <findRegex>^.*serialVersionUID.*(\r?\n)(\s*\r?\n)?</findRegex> |
|
455 | 516 | <configuration> |
456 | 517 | <configLocation>../.config/checkstyle/checkstyle.xml</configLocation> |
457 | 518 | <includeTestSourceDirectory>true</includeTestSourceDirectory> |
| 519 | + <excludes>**/xmldocument/model/**/*</excludes> |
458 | 520 | </configuration> |
459 | 521 | <executions> |
460 | 522 | <execution> |
|
0 commit comments