File tree Expand file tree Collapse file tree 1 file changed +25
-8
lines changed Expand file tree Collapse file tree 1 file changed +25
-8
lines changed Original file line number Diff line number Diff line change 2727 <properties >
2828 <!-- 项目版本号 -->
2929 <revision >3.9.2</revision >
30- <java .version>17 </java .version>
30+ <java .version>25 </java .version>
3131 <spring-boot .version>3.5.7</spring-boot .version>
3232 <spring-cloud .version>2025.0.0</spring-cloud .version>
3333 <spring-cloud-alibaba .version>2025.0.0.0</spring-cloud-alibaba .version>
261261 <release >${java.version} </release >
262262 <encoding >UTF-8</encoding >
263263 <parameters >true</parameters >
264- <!-- 支持 JDK 25 编译 -->
265- <annotationProcessorPaths >
266- <path >
267- <groupId >org.projectlombok</groupId >
268- <artifactId >lombok</artifactId >
269- </path >
270- </annotationProcessorPaths >
271264 </configuration >
272265 </plugin >
273266 <!-- 打包jar 与git commit 关联插件-->
330323 <module >pig-boot</module >
331324 </modules >
332325 </profile >
326+ <!-- 自动激活,针对 lombok 注解增强-->
327+ <profile >
328+ <id >jdk25-annotation-processor</id >
329+ <activation >
330+ <jdk >[25,)</jdk >
331+ </activation >
332+ <build >
333+ <plugins >
334+ <plugin >
335+ <groupId >org.apache.maven.plugins</groupId >
336+ <artifactId >maven-compiler-plugin</artifactId >
337+ <configuration >
338+ <!-- 支持 JDK 25+ 编译 -->
339+ <annotationProcessorPaths >
340+ <path >
341+ <groupId >org.projectlombok</groupId >
342+ <artifactId >lombok</artifactId >
343+ </path >
344+ </annotationProcessorPaths >
345+ </configuration >
346+ </plugin >
347+ </plugins >
348+ </build >
349+ </profile >
333350 </profiles >
334351</project >
You can’t perform that action at this time.
0 commit comments