|
| 1 | +<?xml version="1.0" encoding="UTF-8"?> |
| 2 | +<!-- |
| 3 | + ~ Copyright 2015 Stilavia S.L. |
| 4 | + ~ |
| 5 | + ~ Licensed under the Apache License, Version 2.0 (the "License"); |
| 6 | + ~ you may not use this file except in compliance with the License. |
| 7 | + ~ You may obtain a copy of the License at |
| 8 | + ~ |
| 9 | + ~ http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | + ~ |
| 11 | + ~ Unless required by applicable law or agreed to in writing, software |
| 12 | + ~ distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | + ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | + ~ See the License for the specific language governing permissions and |
| 15 | + ~ limitations under the License. |
| 16 | + --> |
| 17 | + |
| 18 | +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 19 | + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
| 20 | + <modelVersion>4.0.0</modelVersion> |
| 21 | + |
| 22 | + <groupId>de.focus-shift.lexoffice</groupId> |
| 23 | + <artifactId>java-sdk</artifactId> |
| 24 | + <version>3.4.0-SNAPSHOT</version> |
| 25 | + |
| 26 | + <name>Lexoffice Java SDK</name> |
| 27 | + |
| 28 | + <description> |
| 29 | + Unofficial Java SDK for the lexoffice Public API. |
| 30 | + </description> |
| 31 | + |
| 32 | + <url>https://github.com/focus-shift/lexoffice-java-sdk</url> |
| 33 | + |
| 34 | + <licenses> |
| 35 | + <license> |
| 36 | + <name>MIT</name> |
| 37 | + <url>https://spdx.org/licenses/MIT.html</url> |
| 38 | + </license> |
| 39 | + </licenses> |
| 40 | + |
| 41 | + <developers> |
| 42 | + <developer> |
| 43 | + <name>Johannes Graf</name> |
| 44 | + <email>johannes.graf@focus-shift.de</email> |
| 45 | + <organization>Focus Shift Software GmbH</organization> |
| 46 | + <organizationUrl>https://focus-shift.de/</organizationUrl> |
| 47 | + </developer> |
| 48 | + </developers> |
| 49 | + |
| 50 | + <scm> |
| 51 | + <url>https://github.com/focus-shift/lexoffice-java-sdk</url> |
| 52 | + <developerConnection>scm:git:git@github.com:focus-shift/lexoffice-java-sdk.git</developerConnection> |
| 53 | + <connection>scm:git:git@github.com:focus-shift/lexoffice-java-sdk.git</connection> |
| 54 | + <tag>HEAD</tag> |
| 55 | + </scm> |
| 56 | + |
| 57 | + <properties> |
| 58 | + <maven.compiler.source>21</maven.compiler.source> |
| 59 | + <maven.compiler.target>21</maven.compiler.target> |
| 60 | + <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
| 61 | + |
| 62 | + <revision>3.4.0-SNAPSHOT</revision> |
| 63 | + <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
| 64 | + |
| 65 | + <jackson-version>2.19.2</jackson-version> |
| 66 | + <junit-jupiter-version>5.13.3</junit-jupiter-version> |
| 67 | + <mockito-core.version>5.19.0</mockito-core.version> |
| 68 | + |
| 69 | + </properties> |
| 70 | + |
| 71 | + |
| 72 | + |
| 73 | + <dependencies> |
| 74 | + |
| 75 | + <!-- dependencies are needed for the client being generated --> |
| 76 | + <dependency> |
| 77 | + <groupId>org.apache.httpcomponents.client5</groupId> |
| 78 | + <artifactId>httpclient5</artifactId> |
| 79 | + <version>5.4.4</version> |
| 80 | + </dependency> |
| 81 | + |
| 82 | + <dependency> |
| 83 | + <groupId>com.fasterxml.jackson.core</groupId> |
| 84 | + <artifactId>jackson-core</artifactId> |
| 85 | + <version>${jackson-version}</version> |
| 86 | + </dependency> |
| 87 | + <dependency> |
| 88 | + <groupId>com.fasterxml.jackson.core</groupId> |
| 89 | + <artifactId>jackson-annotations</artifactId> |
| 90 | + <version>${jackson-version}</version> |
| 91 | + </dependency> |
| 92 | + <dependency> |
| 93 | + <groupId>com.fasterxml.jackson.core</groupId> |
| 94 | + <artifactId>jackson-databind</artifactId> |
| 95 | + <version>${jackson-version}</version> |
| 96 | + </dependency> |
| 97 | + <dependency> |
| 98 | + <groupId>com.fasterxml.jackson.dataformat</groupId> |
| 99 | + <artifactId>jackson-dataformat-csv</artifactId> |
| 100 | + <version>${jackson-version}</version> |
| 101 | + <scope>test</scope> |
| 102 | + </dependency> |
| 103 | + <dependency> |
| 104 | + <groupId>com.fasterxml.jackson.datatype</groupId> |
| 105 | + <artifactId>jackson-datatype-jsr310</artifactId> |
| 106 | + <version>${jackson-version}</version> |
| 107 | + </dependency> |
| 108 | + <dependency> |
| 109 | + <groupId>org.openapitools</groupId> |
| 110 | + <artifactId>jackson-databind-nullable</artifactId> |
| 111 | + <version>0.2.6</version> |
| 112 | + </dependency> |
| 113 | + <dependency> |
| 114 | + <groupId>jakarta.annotation</groupId> |
| 115 | + <artifactId>jakarta.annotation-api</artifactId> |
| 116 | + <version>3.0.0</version> |
| 117 | + <scope>provided</scope> |
| 118 | + </dependency> |
| 119 | + |
| 120 | + <dependency> |
| 121 | + <groupId>io.github.resilience4j</groupId> |
| 122 | + <artifactId>resilience4j-ratelimiter</artifactId> |
| 123 | + <version>2.2.0</version> |
| 124 | + </dependency> |
| 125 | + |
| 126 | + <dependency> |
| 127 | + <groupId>org.slf4j</groupId> |
| 128 | + <artifactId>slf4j-api</artifactId> |
| 129 | + <version>2.0.17</version> |
| 130 | + </dependency> |
| 131 | + |
| 132 | + <!-- test dependencies --> |
| 133 | + <dependency> |
| 134 | + <groupId>org.slf4j</groupId> |
| 135 | + <artifactId>slf4j-simple</artifactId> |
| 136 | + <version>2.0.17</version> |
| 137 | + <scope>test</scope> |
| 138 | + </dependency> |
| 139 | + <dependency> |
| 140 | + <groupId>org.junit.jupiter</groupId> |
| 141 | + <artifactId>junit-jupiter-engine</artifactId> |
| 142 | + <version>${junit-jupiter-version}</version> |
| 143 | + <scope>test</scope> |
| 144 | + </dependency> |
| 145 | + <dependency> |
| 146 | + <groupId>org.junit.jupiter</groupId> |
| 147 | + <artifactId>junit-jupiter-params</artifactId> |
| 148 | + <version>${junit-jupiter-version}</version> |
| 149 | + <scope>test</scope> |
| 150 | + </dependency> |
| 151 | + <dependency> |
| 152 | + <groupId>org.assertj</groupId> |
| 153 | + <artifactId>assertj-core</artifactId> |
| 154 | + <version>3.27.4</version> |
| 155 | + <scope>test</scope> |
| 156 | + </dependency> |
| 157 | + <dependency> |
| 158 | + <groupId>org.wiremock</groupId> |
| 159 | + <artifactId>wiremock</artifactId> |
| 160 | + <version>3.13.1</version> |
| 161 | + <scope>test</scope> |
| 162 | + </dependency> |
| 163 | + <dependency> |
| 164 | + <groupId>org.mockito</groupId> |
| 165 | + <artifactId>mockito-core</artifactId> |
| 166 | + <version>${mockito-core.version}</version> |
| 167 | + <scope>test</scope> |
| 168 | + </dependency> |
| 169 | + <dependency> |
| 170 | + <groupId>org.mockito</groupId> |
| 171 | + <artifactId>mockito-junit-jupiter</artifactId> |
| 172 | + <version>${mockito-core.version}</version> |
| 173 | + <scope>test</scope> |
| 174 | + </dependency> |
| 175 | + </dependencies> |
| 176 | + |
| 177 | + |
| 178 | + <build> |
| 179 | + <plugins> |
| 180 | + <plugin> |
| 181 | + <artifactId>maven-compiler-plugin</artifactId> |
| 182 | + <version>3.14.0</version> |
| 183 | + <configuration> |
| 184 | + <showWarnings>true</showWarnings> |
| 185 | + <showDeprecation>true</showDeprecation> |
| 186 | + </configuration> |
| 187 | + </plugin> |
| 188 | + |
| 189 | + <!-- required for picky gradle version validation --> |
| 190 | + <plugin> |
| 191 | + <groupId>org.codehaus.mojo</groupId> |
| 192 | + <artifactId>flatten-maven-plugin</artifactId> |
| 193 | + <version>1.7.2</version> |
| 194 | + <configuration> |
| 195 | + <flattenMode>resolveCiFriendliesOnly</flattenMode> |
| 196 | + </configuration> |
| 197 | + <executions> |
| 198 | + <execution> |
| 199 | + <id>flatten</id> |
| 200 | + <phase>process-resources</phase> |
| 201 | + <goals> |
| 202 | + <goal>flatten</goal> |
| 203 | + </goals> |
| 204 | + </execution> |
| 205 | + </executions> |
| 206 | + </plugin> |
| 207 | + |
| 208 | + <plugin> |
| 209 | + <artifactId>maven-surefire-plugin</artifactId> |
| 210 | + <version>3.5.2</version> |
| 211 | + </plugin> |
| 212 | + <plugin> |
| 213 | + <groupId>com.diffplug.spotless</groupId> |
| 214 | + <artifactId>spotless-maven-plugin</artifactId> |
| 215 | + <version>2.46.1</version> |
| 216 | + <configuration> |
| 217 | + <java> |
| 218 | + <removeUnusedImports/> |
| 219 | + <googleJavaFormat/> |
| 220 | + <trimTrailingWhitespace/> |
| 221 | + <endWithNewline/> |
| 222 | + </java> |
| 223 | + </configuration> |
| 224 | + </plugin> |
| 225 | + |
| 226 | + <plugin> |
| 227 | + <groupId>org.openapitools</groupId> |
| 228 | + <artifactId>openapi-generator-maven-plugin</artifactId> |
| 229 | + <version>7.14.0</version> |
| 230 | + <executions> |
| 231 | + <execution> |
| 232 | + <phase>generate-sources</phase> |
| 233 | + <goals> |
| 234 | + <goal>generate</goal> |
| 235 | + </goals> |
| 236 | + <configuration> |
| 237 | + <inputSpec>${project.basedir}/src/main/resources/openapi.yaml</inputSpec> |
| 238 | + <generatorName>java</generatorName> |
| 239 | + <output>${project.build.directory}/generated-sources/openapi</output> |
| 240 | + <apiPackage>de.focus-shift.lexoffice.java-sdk.api</apiPackage> |
| 241 | + <modelPackage>de.focus-shift.lexoffice.java-sdk.model</modelPackage> |
| 242 | + <invokerPackage>de.focus-shift.lexoffice.java-sdk.invoker</invokerPackage> |
| 243 | + <ignoreFileOverride>${project.basedir}/.openapi-generator-ignore</ignoreFileOverride> |
| 244 | + <library>apache-httpclient</library> |
| 245 | + <configOptions> |
| 246 | + <dateLibrary>java8</dateLibrary> |
| 247 | + <useJakartaEe>true</useJakartaEe> |
| 248 | + <!--<useGzipFeature>true</useGzipFeature>--> |
| 249 | + </configOptions> |
| 250 | + <!-- using false doesn't generate invoker files --> |
| 251 | + <generateSupportingFiles>true</generateSupportingFiles> |
| 252 | + |
| 253 | + </configuration> |
| 254 | + </execution> |
| 255 | + </executions> |
| 256 | + </plugin> |
| 257 | + <plugin> |
| 258 | + <groupId>org.apache.maven.plugins</groupId> |
| 259 | + <artifactId>maven-antrun-plugin</artifactId> |
| 260 | + <version>3.1.0</version> |
| 261 | + <executions> |
| 262 | + <execution> |
| 263 | + <id>remove-generated-tests</id> |
| 264 | + <phase>generate-sources</phase> |
| 265 | + <configuration> |
| 266 | + <target> |
| 267 | + <delete dir="${project.build.directory}/generated-sources/openapi/src/test"/> |
| 268 | + </target> |
| 269 | + </configuration> |
| 270 | + <goals> |
| 271 | + <goal>run</goal> |
| 272 | + </goals> |
| 273 | + </execution> |
| 274 | + </executions> |
| 275 | + </plugin> |
| 276 | + |
| 277 | + |
| 278 | + <plugin> |
| 279 | + <groupId>org.apache.maven.plugins</groupId> |
| 280 | + <artifactId>maven-source-plugin</artifactId> |
| 281 | + <version>3.3.1</version> |
| 282 | + <executions> |
| 283 | + <execution> |
| 284 | + <id>attach-sources</id> |
| 285 | + <goals> |
| 286 | + <goal>jar-no-fork</goal> |
| 287 | + </goals> |
| 288 | + </execution> |
| 289 | + </executions> |
| 290 | + </plugin> |
| 291 | + |
| 292 | + <plugin> |
| 293 | + <groupId>org.apache.maven.plugins</groupId> |
| 294 | + <artifactId>maven-javadoc-plugin</artifactId> |
| 295 | + <version>3.11.2</version> |
| 296 | + <configuration> |
| 297 | + <doclint>none</doclint> |
| 298 | + </configuration> |
| 299 | + <executions> |
| 300 | + <execution> |
| 301 | + <id>attach-javadocs</id> |
| 302 | + <goals> |
| 303 | + <goal>jar</goal> |
| 304 | + </goals> |
| 305 | + </execution> |
| 306 | + </executions> |
| 307 | + </plugin> |
| 308 | + </plugins> |
| 309 | + </build> |
| 310 | + |
| 311 | + <profiles> |
| 312 | + <profile> |
| 313 | + <id>release</id> |
| 314 | + <build> |
| 315 | + <plugins> |
| 316 | + <plugin> |
| 317 | + <groupId>org.apache.maven.plugins</groupId> |
| 318 | + <artifactId>maven-gpg-plugin</artifactId> |
| 319 | + <version>3.2.7</version> |
| 320 | + <configuration> |
| 321 | + <gpgArguments> |
| 322 | + <arg>--pinentry-mode</arg> |
| 323 | + <arg>loopback</arg> |
| 324 | + </gpgArguments> |
| 325 | + </configuration> |
| 326 | + <executions> |
| 327 | + <execution> |
| 328 | + <id>sign-artifacts</id> |
| 329 | + <phase>verify</phase> |
| 330 | + <goals> |
| 331 | + <goal>sign</goal> |
| 332 | + </goals> |
| 333 | + </execution> |
| 334 | + </executions> |
| 335 | + </plugin> |
| 336 | + <plugin> |
| 337 | + <groupId>org.sonatype.central</groupId> |
| 338 | + <artifactId>central-publishing-maven-plugin</artifactId> |
| 339 | + <version>0.8.0</version> |
| 340 | + <extensions>true</extensions> |
| 341 | + <configuration> |
| 342 | + <publishingServerId>central</publishingServerId> |
| 343 | + <autoPublish>true</autoPublish> |
| 344 | + <waitUntil>published</waitUntil> |
| 345 | + <waitMaxTime>3600</waitMaxTime> |
| 346 | + </configuration> |
| 347 | + </plugin> |
| 348 | + </plugins> |
| 349 | + </build> |
| 350 | + </profile> |
| 351 | + </profiles> |
| 352 | + |
| 353 | +</project> |
0 commit comments