|
70 | 70 | <maven.compiler.source>${java.version}</maven.compiler.source>
|
71 | 71 | <maven.compiler.target>${java.version}</maven.compiler.target>
|
72 | 72 | <maven.compiler.compilerVersion>${java.version}</maven.compiler.compilerVersion>
|
73 |
| - <argLine>-server -Xms256m -Xmx512m -Dfile.encoding=UTF-8 -Djava.net.preferIPv4Stack=true -XX:MetaspaceSize=128m -XX:MaxMetaspaceSize=512m</argLine> |
74 |
| - <!--<java17ArgLine>--add-exports=java.base/sun.reflect.annotation=ALL-UNNAMED</java17ArgLine>--> |
75 |
| - <java17ArgLine></java17ArgLine> |
| 73 | + <argLine>-Dfile.encoding=UTF-8 -Djava.net.preferIPv4Stack=true</argLine> |
| 74 | + <java9.module.argLine></java9.module.argLine> |
76 | 75 |
|
77 | 76 | <spring-boot.version>2.7.18</spring-boot.version>
|
78 | 77 | <mapstruct.version>1.5.5.Final</mapstruct.version>
|
79 |
| - <guava.version>33.2.0-jre</guava.version> |
| 78 | + <guava.version>33.2.1-jre</guava.version> |
80 | 79 | <commons-collections4.version>4.4</commons-collections4.version>
|
81 | 80 | <commons-io.version>2.16.1</commons-io.version>
|
82 | 81 | <mybatis-spring-boot-starter.version>2.3.2</mybatis-spring-boot-starter.version>
|
83 | 82 | <jna-platform.version>5.14.0</jna-platform.version>
|
84 |
| - <curator-recipes.version>5.6.0</curator-recipes.version> |
| 83 | + <curator-recipes.version>5.7.0</curator-recipes.version> |
85 | 84 |
|
86 | 85 | <springdoc-openapi-ui.version>1.8.0</springdoc-openapi-ui.version>
|
87 | 86 | <mariaDB4j.version>2.5.3</mariaDB4j.version>
|
|
191 | 190 | </dependencies>
|
192 | 191 |
|
193 | 192 | <profiles>
|
| 193 | + <profile> |
| 194 | + <id>java9-module-exports</id> |
| 195 | + <activation> |
| 196 | + <jdk>[9,)</jdk> |
| 197 | + </activation> |
| 198 | + <properties> |
| 199 | + <java9.module.argLine>--add-exports=java.base/sun.reflect.annotation=ALL-UNNAMED</java9.module.argLine> |
| 200 | + </properties> |
| 201 | + </profile> |
194 | 202 | <profile>
|
195 | 203 | <id>develop</id>
|
196 | 204 | <activation>
|
|
231 | 239 | </execution>
|
232 | 240 | </executions>
|
233 | 241 | </plugin>
|
234 |
| - <!-- |
235 |
| - <plugin> |
236 |
| - Note: 加上会导致把可执行的jar包(如spring boot jar)deploy到sonatype上 |
237 |
| - Nexus-bug: https://issues.sonatype.org/browse/NEXUS-9138 |
238 |
| - <groupId>org.sonatype.plugins</groupId> |
239 |
| - <artifactId>nexus-staging-maven-plugin</artifactId> |
240 |
| - <version>1.6.13</version> |
241 |
| - <extensions>true</extensions> |
242 |
| - <configuration> |
243 |
| - <serverId>ossrh</serverId> |
244 |
| - <nexusUrl>https://s01.oss.sonatype.org/</nexusUrl> |
245 |
| - <autoReleaseAfterClose>false</autoReleaseAfterClose> |
246 |
| - </configuration> |
247 |
| - </plugin> |
248 |
| - --> |
249 | 242 | </plugins>
|
250 | 243 | </build>
|
251 | 244 | </profile>
|
|
347 | 340 | <compilerVersion>${java.version}</compilerVersion>
|
348 | 341 | <encoding>${file.encoding}</encoding>
|
349 | 342 | <compilerArgs>
|
350 |
| - <arg>${java17ArgLine}</arg> |
| 343 | + <arg>${java9.module.argLine}</arg> |
351 | 344 | <arg>-Xlint:unchecked,deprecation</arg>
|
352 | 345 | </compilerArgs>
|
353 |
| - <!-- |
354 |
| - <annotationProcessorPaths> |
355 |
| - <path> |
356 |
| - <groupId>org.projectlombok</groupId> |
357 |
| - <artifactId>lombok</artifactId> |
358 |
| - <version>${lombok.version}</version> |
359 |
| - </path> |
360 |
| - <path> |
361 |
| - <groupId>org.mapstruct</groupId> |
362 |
| - <artifactId>mapstruct-processor</artifactId> |
363 |
| - <version>${mapstruct.version}</version> |
364 |
| - </path> |
365 |
| - <path> |
366 |
| - <groupId>org.springframework.boot</groupId> |
367 |
| - <artifactId>spring-boot-configuration-processor</artifactId> |
368 |
| - <version>${spring-boot.version}</version> |
369 |
| - </path> |
370 |
| - </annotationProcessorPaths> |
371 |
| - --> |
372 | 346 | </configuration>
|
373 | 347 | </plugin>
|
374 | 348 | <plugin>
|
|
379 | 353 | <redirectTestOutputToFile>true</redirectTestOutputToFile>
|
380 | 354 | <forkCount>1</forkCount>
|
381 | 355 | <reuseForks>true</reuseForks>
|
382 |
| - <argLine>${java17ArgLine} ${argLine} ${jacocoArgLine}</argLine> |
| 356 | + <argLine>${java9.module.argLine} ${argLine} ${jacocoArgLine}</argLine> |
383 | 357 | </configuration>
|
384 | 358 | </plugin>
|
385 | 359 | <plugin>
|
|
0 commit comments