|
1 | | -<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
2 | | - xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> |
| 1 | +<project xmlns="http://maven.apache.org/POM/4.0.0" |
| 2 | + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> |
3 | 3 | <modelVersion>4.0.0</modelVersion> |
4 | 4 | <groupId>com.bandwidth.sdk</groupId> |
5 | 5 | <artifactId>bandwidth-sdk</artifactId> |
|
33 | 33 |
|
34 | 34 | <build> |
35 | 35 | <plugins> |
36 | | - <plugin> |
| 36 | + <plugin> |
37 | 37 | <groupId>org.apache.maven.plugins</groupId> |
38 | 38 | <artifactId>maven-compiler-plugin</artifactId> |
39 | | - <version>3.8.1</version> |
| 39 | + <version>3.10.1</version> |
40 | 40 | <configuration> |
41 | 41 | <fork>true</fork> |
42 | 42 | <meminitial>128m</meminitial> |
43 | 43 | <maxmem>512m</maxmem> |
44 | 44 | <compilerArgs> |
45 | 45 | <arg>-Xlint:all</arg> |
46 | | - <arg>-J-Xss4m</arg><!-- Compiling the generated JSON.java file may require larger stack size. --> |
| 46 | + <arg>-J-Xss4m</arg> <!-- Compiling the generated JSON.java file may require larger stack size. --> |
47 | 47 | </compilerArgs> |
| 48 | + <forceJavacCompilerUse>true</forceJavacCompilerUse> |
| 49 | + <release>${java.version}</release> |
| 50 | + <source>${java.version}</source> |
| 51 | + <target>${java.version}</target> |
48 | 52 | </configuration> |
49 | 53 | </plugin> |
50 | 54 | <plugin> |
51 | 55 | <groupId>org.apache.maven.plugins</groupId> |
52 | 56 | <artifactId>maven-enforcer-plugin</artifactId> |
53 | | - <version>3.0.0</version> |
| 57 | + <version>3.1.0</version> |
54 | 58 | <executions> |
55 | 59 | <execution> |
56 | 60 | <id>enforce-maven</id> |
57 | 61 | <goals> |
58 | 62 | <goal>enforce</goal> |
59 | 63 | </goals> |
60 | | - <configuration> |
61 | | - <rules> |
62 | | - <requireMavenVersion> |
63 | | - <version>2.2.0</version> |
64 | | - </requireMavenVersion> |
65 | | - </rules> |
66 | | - </configuration> |
67 | 64 | </execution> |
68 | 65 | </executions> |
| 66 | + <configuration> |
| 67 | + <rules> |
| 68 | + <requireMavenVersion> |
| 69 | + <version>3.8.6</version> |
| 70 | + </requireMavenVersion> |
| 71 | + </rules> |
| 72 | + </configuration> |
69 | 73 | </plugin> |
70 | 74 | <plugin> |
71 | 75 | <groupId>org.apache.maven.plugins</groupId> |
|
192 | 196 | Ref: https://github.com/diffplug/spotless/tree/main/plugin-maven |
193 | 197 | --> |
194 | 198 | <plugin> |
195 | | - <groupId>com.diffplug.spotless</groupId> |
196 | | - <artifactId>spotless-maven-plugin</artifactId> |
197 | | - <version>${spotless.version}</version> |
198 | | - <configuration> |
199 | | - <formats> |
200 | | - <!-- you can define as many formats as you want, each is independent --> |
201 | | - <format> |
202 | | - <!-- define the files to apply to --> |
203 | | - <includes> |
204 | | - <include>.gitignore</include> |
205 | | - </includes> |
206 | | - <!-- define the steps to apply to those files --> |
207 | | - <trimTrailingWhitespace/> |
208 | | - <endWithNewline/> |
209 | | - <indent> |
210 | | - <spaces>true</spaces> <!-- or <tabs>true</tabs> --> |
211 | | - <spacesPerTab>4</spacesPerTab> <!-- optional, default is 4 --> |
212 | | - </indent> |
213 | | - </format> |
214 | | - </formats> |
215 | | - <!-- define a language-specific format --> |
216 | | - <java> |
217 | | - <!-- no need to specify files, inferred automatically, but you can if you want --> |
| 199 | + <groupId>com.diffplug.spotless</groupId> |
| 200 | + <artifactId>spotless-maven-plugin</artifactId> |
| 201 | + <version>${spotless.version}</version> |
| 202 | + <configuration> |
| 203 | + <formats> |
| 204 | + <!-- you can define as many formats as you want, each is independent --> |
| 205 | + <format> |
| 206 | + <!-- define the files to apply to --> |
| 207 | + <includes> |
| 208 | + <include>.gitignore</include> |
| 209 | + </includes> |
| 210 | + <!-- define the steps to apply to those files --> |
| 211 | + <trimTrailingWhitespace/> |
| 212 | + <endWithNewline/> |
| 213 | + <indent> |
| 214 | + <spaces>true</spaces> <!-- or <tabs>true</tabs> --> |
| 215 | + <spacesPerTab>4</spacesPerTab> <!-- optional, default is 4 --> |
| 216 | + </indent> |
| 217 | + </format> |
| 218 | + </formats> |
| 219 | + <!-- define a language-specific format --> |
| 220 | + <java> |
| 221 | + <!-- no need to specify files, inferred automatically, but you can if you want --> |
218 | 222 |
|
219 | | - <!-- apply a specific flavor of google-java-format and reflow long strings --> |
220 | | - <googleJavaFormat> |
221 | | - <version>1.8</version> |
222 | | - <style>AOSP</style> |
223 | | - <reflowLongStrings>true</reflowLongStrings> |
224 | | - </googleJavaFormat> |
| 223 | + <!-- apply a specific flavor of google-java-format and reflow long strings --> |
| 224 | + <googleJavaFormat> |
| 225 | + <version>1.8</version> |
| 226 | + <style>AOSP</style> |
| 227 | + <reflowLongStrings>true</reflowLongStrings> |
| 228 | + </googleJavaFormat> |
225 | 229 |
|
226 | | - <removeUnusedImports/> |
227 | | - <importOrder/> |
| 230 | + <removeUnusedImports/> |
| 231 | + <importOrder/> |
228 | 232 |
|
229 | | - </java> |
230 | | - </configuration> |
| 233 | + </java> |
| 234 | + </configuration> |
231 | 235 | </plugin> |
232 | 236 | </plugins> |
233 | 237 | </build> |
|
257 | 261 | </profiles> |
258 | 262 |
|
259 | 263 | <dependencies> |
260 | | - |
| 264 | + <dependency> |
| 265 | + <groupId>org.glassfish.jaxb</groupId> |
| 266 | + <artifactId>jaxb-core</artifactId> |
| 267 | + <version>${jaxb.version}</version> |
| 268 | + </dependency> |
| 269 | + <dependency> |
| 270 | + <groupId>org.glassfish.jaxb</groupId> |
| 271 | + <artifactId>jaxb-runtime</artifactId> |
| 272 | + <version>${jaxb.version}</version> |
| 273 | + </dependency> |
| 274 | + <dependency> |
| 275 | + <groupId>org.projectlombok</groupId> |
| 276 | + <artifactId>lombok</artifactId> |
| 277 | + <version>1.18.24</version> |
| 278 | + <scope>provided</scope> |
| 279 | + </dependency> |
| 280 | + <dependency> |
| 281 | + <groupId>jakarta.xml.bind</groupId> |
| 282 | + <artifactId>jakarta.xml.bind-api</artifactId> |
| 283 | + <version>${jaxb.version}</version> |
| 284 | + </dependency> |
261 | 285 | <dependency> |
262 | 286 | <groupId>org.hamcrest</groupId> |
263 | 287 | <artifactId>hamcrest</artifactId> |
264 | 288 | <version>2.2</version> |
265 | 289 | </dependency> |
266 | | - |
267 | 290 | <dependency> |
268 | 291 | <groupId>io.swagger</groupId> |
269 | 292 | <artifactId>swagger-annotations</artifactId> |
|
342 | 365 | </dependency> |
343 | 366 | </dependencies> |
344 | 367 | <properties> |
345 | | - <java.version>1.8</java.version> |
| 368 | + <java.version>11</java.version> |
346 | 369 | <maven.compiler.source>${java.version}</maven.compiler.source> |
347 | 370 | <maven.compiler.target>${java.version}</maven.compiler.target> |
348 | 371 | <gson-fire-version>1.8.5</gson-fire-version> |
349 | 372 | <swagger-core-version>1.6.5</swagger-core-version> |
350 | 373 | <okhttp-version>4.9.3</okhttp-version> |
351 | 374 | <gson-version>2.9.0</gson-version> |
352 | 375 | <commons-lang3-version>3.12.0</commons-lang3-version> |
| 376 | + <jaxb.version>4.0.0</jaxb.version> |
353 | 377 | <jackson-databind-nullable-version>0.2.3</jackson-databind-nullable-version> |
354 | 378 | <jakarta-annotation-version>1.3.5</jakarta-annotation-version> |
355 | 379 | <junit-version>5.8.2</junit-version> |
|
360 | 384 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
361 | 385 | <spotless.version>2.21.0</spotless.version> |
362 | 386 | </properties> |
| 387 | + <dependencyManagement> |
| 388 | + <dependencies> |
| 389 | + <dependency> |
| 390 | + <groupId>org.projectlombok</groupId> |
| 391 | + <artifactId>lombok</artifactId> |
| 392 | + <version>1.18.24</version> |
| 393 | + <scope>provided</scope> |
| 394 | + </dependency> |
| 395 | + </dependencies> |
| 396 | + </dependencyManagement> |
363 | 397 | </project> |
0 commit comments